How do I downgrade an RPM package in Linux?

How do I downgrade an RPM 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 downgrade a package in Linux?

How to Downgrade Software/Package in Linux

  1. sudo apt install firefox=60.1.
  2. cat /var/log/zypp/history | grep package_name.
  3. ls /var/cache/pacman/pkg/ | grep package_name.
  4. sudo pacman -U /var/cache/pacman/pkg/package_name-version.pkg.tar.xz.

How do I downgrade using yum?

Display current version of installed package. Display available versions of specific package. Downgrade specific package. $ sudo yum downgrade newrelic-infra-1.5.

How do I install and remove a package using RPM in Linux?

There are five basic modes for RPM command

  1. Install : It is used to install any RPM package.
  2. Remove : It is used to erase, remove or un-install any RPM package.
  3. Upgrade : It is used to update the existing RPM package.
  4. Verify : It is used to verify an RPM packages.
  5. Query : It is used query any RPM package.

How do I uninstall an RPM package?

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 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 roll back a package in Linux?

Rollback an update

  1. # yum install httpd. You can check if the package has been installed by running the following command,
  2. # httpd -version. Now that we have a package installed, we will need transaction ID for this transaction to undo. …
  3. $ yum history. …
  4. # yum history undo 7.

How do I downgrade Tesseract?

Downgrade any Homebrew package easily

  1. Run brew info tesseract and find the formula link. …
  2. Open the formula link in your web browser, click “Raw” and note the URL. …
  3. Run brew log tesseract . …
  4. Replace master in the URL from Step 2 with the commit id from Step 3.

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).

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 downgrade my kernel version?

When the computer loads GRUB, you may need to hit a key in order to select non-standard options. On some systems, the older kernels will be shown here, while on Ubuntu you’ll need to select “Advanced options for Ubuntu” to find older kernels. Once you select the older kernel, you’ll boot into your system.

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.

What is rpm packages in Linux?

RPM Package Manager (also known as RPM), originally called the Red-hat Package Manager, is an open source program for installing, uninstalling, and managing software packages in Linux. RPM was developed on the basis of the Linux Standard Base (LSB). … rpm is the default extension for files used by the program.

What is the command to install RPM package in Linux?

We can install the RPM package with the following command: rpm -ivh <package name> . Note the -v option will show verbose output and the -h will show the hash marks, which represents action of the progress of the RPM upgrade. Lastly, we run another RPM query to verify the package will be available.

How do I list an RPM package?

List or Count Installed RPM Packages

  1. If you are on a RPM-based Linux platform (such as Redhat, CentOS, Fedora, ArchLinux, Scientific Linux, etc.), here are two ways to determine the list of packages installed. Using yum:
  2. yum list installed. Using rpm:
  3. rpm -qa. …
  4. yum list installed | wc -l.
  5. rpm -qa | wc -l.
Like this post? Please share to your friends:
OS Today