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
RenanRenan
16.6k eight gold badges 65 silver badges 85 bronze badges
two
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
NilsNils
17.3k 11 gold badges 44 silver badges 77 statuary badges
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 bitapropos
, 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
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-mentionedrpm
commands to play with the package database;yum install package_file.rpm
andyum 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