How do I downgrade an RPM in Linux?

How do I downgrade an RPM package in Linux?

Install old rpm or downgrade rpm using rpm

  1. – h, –hash : Print 50 hash marks as the package archive is unpacked.
  2. – U, –upgrade : This upgrades or installs the package currently installed to a newer version. …
  3. –oldpackage : Allow an upgrade to replace a newer package with an older one.

How do I revert an RPM?

To roll back an RPM transaction set, RPM must have access to the set of RPMs that were on the system at the time the transaction occurred. It solves this problem by repackaging each RPM before it is erased and storing these repackaged packages in the repackage directory (by default, /var/spool/repackage).

How do I rollback a package in Linux?

Method 2: Using “yum downgrade <PackageName>” Command. Method 3: Using “yum history undo/rollback” in RHEL 6 & later. Method 4: Manually un-install and install the required package (not a preferred way).

How do I force rpm to uninstall in Linux?

Uninstalling Using the RPM Installer

  1. Execute the following command to discover the name of the installed package: rpm -qa | grep Micro_Focus. …
  2. Execute the following command to uninstall the product: rpm -e [ PackageName ]

How do I downgrade an NPM package?

You can downgrade the npm version by specifying a version in the related commands. If you want to downgrade npm to a specific version, you can use the following command: npm install -g npm@[version. number] where the number can be like 4.9. 1 or 8 or v6.

How do I uninstall a yum package?

To uninstall a particular package, as well as any packages that depend on it, run the following command as root : yum remove package_name … Similar to install , remove can take these arguments: package names.

How do I revert back to last yum?

To undo a yum install, take note of the transaction ID, and perform the required action. In this example, we want to undo the install with ID 63, which will erase the package that was installed in the specified transaction, as follows (enter y/yes when asked).

How do I remove duplicate packages in Linux?

You can remove the duplicates by using rpm -e –justdb –nodeps $newerpackage – using the example from above, that would be rpm -e –justdb –nodeps nss-tools-3.28.

How do I force an RPM to install?

To install or upgrade a package, use the -U command-line option:

  1. rpm -U filename.rpm. For example, to install the mlocate RPM used as an example in this chapter, run the following command:
  2. rpm -U mlocate-0.22.2-2.i686.rpm. …
  3. rpm -Uhv mlocate-0.22.2-2.i686.rpm. …
  4. rpm –e package_name. …
  5. rpm –qa. …
  6. rpm –qa | more.

How do I downgrade Java version in Linux?

1 Answer

  1. You have to install the openjdk-8-jre : sudo apt-get install openjdk-8-jre.
  2. Next switch to the jre-8 version: $ sudo update-alternatives –config java There are 2 choices for the alternative java (providing /usr/bin/java).

What is yum command in Linux?

YUM (Yellowdog Updater Modified) is an open source command-line as well as graphical based package management tool for RPM (RedHat Package Manager) based Linux systems. It allows users and system administrator to easily install, update, remove or search software packages on a systems.

What does rpm do in Linux?

RPM is a popular package management tool in Red Hat Enterprise Linux-based distros. Using RPM , you can install, uninstall, and query individual software packages. Still, it cannot manage dependency resolution like YUM . RPM does provide you useful output, including a list of required packages.

How do I know if rpm is installed Linux?

To view all the files of an installed rpm packages, use the -ql (query list) with rpm command.

How can you remove a package using an rpm command?

Include the -e option on the rpm command to remove installed packages; the command syntax is: rpm -e package_name [package_name…] To instruct rpm to remove multiple packages, provide a list of packages you wish to remove when invoking the command.

Like this post? Please share to your friends:
OS Today