centos updating system rpm - centos

Hello I still new to this creating rpm from tar files but is it safe to create newer versions for linking lib tiff etc or would this break any other rpm that requires lib tiff or lib png as I would like to manage my own repo if possible but keeping it running latest versions as centos 6.6 uses old packages

You just need to version that library. See
https://fedoraproject.org/wiki/Packaging:Guidelines#Downstream_.so_name_versioning
Then rpmbuild correctly generate version for Provides and as far as it does not conflict with other requires of other installed packages, you can install it.

Related

Synergy for Linux-Mint-20

I am currently trying to configure my synergy setup. All websites and installation guides just tell to use:
sudo apt-get install synergy
I tried that and it says "Unable to locate package synergy"
I tried downloading a .deb file for that and it said:
"dependency is not satisfiable: libqt4-network (>= 4:4.5.3)"
though I get the same "Unable to locate package libqt4-network" message when I just try to download it through the terminal. And even when I download some other synergy versions, I am always some 'lib' away from using synergy. Specifically libcrypto++6 and libcrypto++9.
Is there a way to download synergy for linux-mint 20?
Unfortunateley, Synergy seems to have changed to closed source.
Thus, Version 2.x builds are unlikely to appear in Open Source Package repos.
The old versions are built against Qt4, which is replaced by Qt5 in Linux Mint 20, thus you will not be able to install an old version, as you tried.
(I tried installing the above-mentioned package libqt4-network, but it depends on other qt4 packages and so on...)
However, it is possible to build the old synergy code using the new Qt5, as this guy did.
I hope someone will create a PPA for this, soon.

How to install multiple versions of a compatible package in CentOS with YUM

Is there a way to install multiple versions of the same package in CentOS/RHEL (7/8) if the package installs separate files in each version?
We have an application we've recently converted to using RPM instead of a home-built package manager based on tar. In order to make atomic-like switches between versions, each version installed in separate directories with the version number in the name, and a symlink with the unversioned name pointed to the current, or previous, version at any given moment in time. The application, of course, used the unversioned name to get init script, configuration files, interpreter version and code. I'm thinking that the alternatives package would be the basis for this, although we wouldn't use the alternatives command to manage symlinks (although there's no technical reason not to).
Not exactly as you describe.
Some packages allow this (Kernel and Kernel-devel being two of them) but i beilieve this is an exception added within the package manager.
Certain Applications like PHP and Python which is perfectly acceptable to have multiple version (Python2.X and 3.X) do this by changing the base name of the application/rpm.
Take a look at: https://rpm.org/user_doc/multiple_versions.html
It gives a good insight on how to achieve what you want

Install MongoDB on CentOs 7 without YUM. have rpm files but not tgz

I'm fairly new to Linux and am running CentOS 7. I can do the basics of navigating, creating dirctories, permissions, unzip applications and make SL to the apps but I have no idea what to do with an "rpm" file.
The system that I am trying to install MongoDB 4.2.x on does not have an outside connection. I have the individual rpm files for MongoDB but not the tgz which some article I read said I should use.
There is no way for me to get the tgz over to the machine unless I wait several days.
With only the .rpm files, how do I install MongoDB?
[https://docs.mongodb.com/manual/tutorial/install-mongodb-on-red-hat/][1]
The instructions in the above link say to create the .repo file but that makes a reference to the external URL which the system does not have access to.
[mongodb-org-4.2]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.2/x86_64/
*
Again, with only the .rpm files, how do I install MongoDB?
*
You do need some kind of access to the outside world; you need to get the rpm files on your machine...
you can just manually download the rpm files you need from https://repo.mongodb.org/yum/redhat/7/mongodb-org/4.2/x86_64/RPMS/, copy them to your machine, and then run
yum install /path/to/downloaded/mongodb*rpm

Completely uninstall Eclipse 4.7 version in RHEL 7.4 Maipo

I'm trying to uninstall the current version of Eclipse IDE in my RHEL machine by simply deleting all the files like:
sudo rm -rf ~/.eclipse
sudo rm -rf ~/eclipse-workspace
I also tried
sudo yum remove 'eclipse*'
However, these didn't seem to solve the purpose.
Any help will be appreciated, thanks!
Applications on Linux systems are most often installed using so-called packages, which are managed by a package management system. In the case of RHEL, packages use the RPM format, and the package manager of choice is a tool called yum.
Both installation and removal of software (packages) should be done using yum, so as to allow the package management system keep track of all installed files and current status. Therefore, you shouldn't try to remove software by simply deleting files from the file system. Instead, use the yum command. See the RHEL System Admin Guide for a detailed explanation of how to use yum to search, install, upgrade, and remove packages: Working with Packages.
You have tried the correct command (yum remove <package-name>), but you need to use the correct package name. On RHEL 7.4, the latest version of Eclipse is available as a part of the DevTools channel, and the package name is rh-eclipse47 (see Enabling the Red Hat Developer Tools Repositories). Note that you may have also installed an older version, which would be, for example, rh-eclipse46.
To find out what is the name of the package you have installed, you can run, for example, the following command:
yum list installed | grep eclipse
There is also the possibility that you installed the software not from an RPM package but manually, e.g. from a .tar.gz file distrubuted from eclipse.org. If that's the case, you will need to use the uninstaller program supplied with that distribution of the software.
Write command as:
rpm -qa|grep eclipse
This will give a list of installed packages. Remove all the packages by giving below command:
rpm -e *package-name*
Done!!!

how to create RPM to instal openJDK JRE, PostgreSQL in Redhat linux?

I need to create a rpm which install's JRE and PostgreSQL in Redhat linux.
only thing i know is i need to create a .spec file and need to mention the instruction to do this. I could do manually by installing each rpm in the linux machine , but i need to bundle this together, so that i install the rpm which inturn installs both JRE and PostGreSQL. I am new to this rpm creation. Any pointers on how to do this?
what it seems that you want to do is called a "metapackage". so your package actually contains nothing, but pulls down the Postgresql and JRE from the repos.
you need to make a spec files which will have for the
Requires: line
Requires: <package1> <package2>
the JRE and PostgreSQL (I don't have a rh machine in front of me so I don't know the actual names), then build like this
rpmbuild -ba SPECS/metatest.spec
see here for more details
http://www.linuxquestions.org/questions/linux-software-2/how-to-make-rpms-with-dependencies-meta-packages-720481/