Details on methods such as upgrading package versions under linux

  • 2021-06-28 14:51:37
  • OfStack

In an Linux environment, you want to see if a software (package) is installed.

For rpm package installation, use rpm-qa | grep "Software or package name".

yum Installed, yum list installed | grep "Name of software or package".

Upgrade the package version.

We often encounter dependencies on other versions of packages (typically newer versions), when we need to upgrade the packages.

1. Install new packages after uninstallation.

First check to see if you have installed the package according to the way mentioned in the first paragraph. If not, use the wget command to download the package and install it directly after finding the path.

If installed, the version of the software you installed will be displayed.Copy the package name directly when writing the uninstall command at the back.

Use

rpm-e software.rpm (Uninstall);

rpm-e--nodeps package name (forced uninstall)

rpm U software.rpm (upgrade installation);

Once uninstalled, install using the rpm-ivh package name.

2. Update packages using yum

(1). List all updatable software lists

Command: yum check-update

(2). Install all update software

Command: yum update

(3). Install only specified software

Command: yum install < package_name >

(4). Update only specified software

Command: yum update < package_name >

(5). Install packages with YUM

Command: yum install < package_name >

(6). Delete packages with YUM

Command: yum remove < package_name >


Related articles: