In the Linux environment, you want to check whether a certain software (package) is installed. If installed using rpm package, use rpm -qa | grep "name of software or package". If installed using yum, run yum list installed | grep “name of software or package”. Upgrade the package version. We often encounter situations where we depend on other versions of packages (usually newer versions), and we need to upgrade the packages. 1. Install the new package after uninstalling. First, check whether you have installed the software according to the method mentioned at the beginning of the article to check whether the software 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. When writing the uninstall command later, just copy the package name. use rpm -e software.rpm (uninstall); rpm -e --nodeps package name (force uninstall) rpm –U software.rpm (installation in upgrade mode); After uninstalling, you can install it using rpm -ivh package name. 2. Update the software package using yum (1)List all the software that can be updated Command: yum check-update (2) Install all updated software Command: yum update (3) Install only the specified software Command: yum install <package_name> (4) Update only the specified software Command: yum update <package_name> (5) Install the software package using YUM Command: yum install <package_name> (6) Use YUM to delete the software package Command: yum remove <package_name> The above detailed explanation of how to upgrade the software package version under Linux is all the content that the editor shares with you. I hope it can give you a reference. I also hope that you will support 123WORDPRESS.COM. You may also be interested in:
|
>>: Detailed explanation of the use of MySQL select cache mechanism
When the software package does not exist, it may ...
1. Download MySQL 1. Log in to the official websi...
After MySQL database optimization, not only can t...
BMP is an image file format that is independent o...
Table of contents Preface 1. Key Elements of a Re...
HTML: Title Heading is defined by tags such as &l...
Copy code The code is as follows: <span style=...
You can call it directly in the Linux shell envir...
transform and translate Transform refers to trans...
Nginx supports three ways to configure virtual ho...
In our daily business, form validation is a very ...
<meta name="viewport" content="w...
Here are some examples of how I use this property ...
Copy code The code is as follows: <frameset co...
Table of contents The dynamic particle effects ar...