banner



How To Repair Rpm On Linux

3 Answers iii

EDIT: Every bit recommended in a comment below, you tin can just employ yum for everything and you will be fine.

Check Red Lid's documentation for the rpm command.

Basically:

  • rpm -Uvh package_file.rpm installs/upgrades a package from a .rpm file
  • rpm -e package_name removes a bundle

To install packages from Red Chapeau's repositories, employ yum, whose commands are generally self-explanatory (install, update etc...). This documentation is for CentOS 5, simply I call back it should work for newer versions of Ruby Hat/CentOS.

answered Jul 15, 2022 at 16:03

two

  • As this page of the RHEL6 Deployment Guide explains, you should simply utilise rpm if absolutely necessary -- under normal circumstances, there's no reason to use the above-mentioned rpm commands to play with the package database; yum install package_file.rpm and yum remove package_name will do just fine.

    Jul 15, 2022 at 19:37

  • @ryran sugariness, I didn't know that (haven't used rpm-based distros in quite a while). Edited my respond to reflect that.

    Jul 15, 2022 at xx:24

RTFM: man yum. apropos install leads to the rights rail.

If "concerning" does not render annihilation, you have to run makewhatis first.

After that y'all will find well-nigh anything with "apropos" which will exercise a full-text-search of all homo-page-short-descriptions.

yum, every bit opposed to rpm, volition resolve all dependencies needed.

answered Jul 15, 2022 at 20:23

two

  • For the record, apropos only searches the names and short descriptions of man pages, in dissimilarity to what yous depict. human being -K on the other paw...

    Jul 16, 2022 at 0:21

  • @ryran thanks - I corrected it. On CentOS v human -k does the aforementioned every bit apropos, according to the man-folio and to a examination.

    Jul 17, 2022 at 15:23

Install Rpm

              rpm -ivh abcd.rpm                          

Update rpm

              rpm -Uvh abcdef.rpm                          

remove rpm

              rpm -e abcd.rpm                          

or remove the the rpm without deps

              rpm -e --nodeps abcd.rpm                          

answered Dec 19, 2022 at 14:04

Not the answer you're looking for? Browse other questions tagged control-line rhel software-installation rpm or ask your own question.

Source: https://unix.stackexchange.com/questions/43114/how-to-install-remove-upgrade-rpm-packages-on-red-hat

Posted by: robertabilootich1963.blogspot.com

0 Response to "How To Repair Rpm On Linux"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel