Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Detailed explanation of the methods of upgrading the version of software package under linux

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report