Detailed explanation of the methods of upgrading the version of software package under linux
In the Linux environment, you want to see if a certain software (package) is installed.
Installed in rpm package mode, use rpm-qa | grep "software or package name".
Installed in yum mode, yum list installed | grep "name of the software or package".
Upgrade the package version.
We often encounter situations where we rely on other versions of the package (usually a newer version), when we need to upgrade the package.
1. Install the new package after uninstalling.
First of all, you should check whether you have installed the software according to the way mentioned at the beginning of the article to see if the package is installed. if not, find the path and use the wget command to download the package and install it directly.
If installed, the version of the software you installed will be displayed. You can simply copy the package name when you write the uninstall command later.
Use
Rpm-e software.rpm (uninstall)
Rpm-e-nodeps package name (force uninstall)
Rpm-U software.rpm (installation in upgraded form)
After uninstalling, you can install it using the rpm-ivh package name.
2. Update the software package using yum
(1)。 Make a list of all updatable software
Command: yum check-update
(2)。 Install all updated softwar
Command: yum update
(3)。 Install only the specified software
Command: yum install
(4)。 Update only the specified software
Command: yum update
(5)。 Install the software package with YUM
Command: yum install
(6)。 Delete a software package with YUM
Command: yum remove
The above article in the linux upgrade package version and other methods detailed explanation is the editor to share with you all the content, I hope to give you a reference, but also hope that you support more.