Installing software with RPM
Removing packages with RPM
What's dependency hell?
Points to remember:
RPM is a binary file like .exe in Windows.
RPM is a package manager. And, it is very low-level.
It doesn't resolve dependencies, you must install them manually.
Yum takes away all the dependencies problem and is the way forward. However, a lot of times, you query packages using the rpm command.
Installs a package
Upgrades a package
Erases a package
Verifies a package
Queries a package
queries all installed packages on the system
Here are some commonly-used general options:
-? | --help
Prints version number
Prints verbose output
yum comes with yumdownloader that lets you download RPM packages but doesn't install them automatically.
yumdownloader nmap-> this downloads the package from the internet and save it in the current directory. However, it doesn't install it.
There are two ways to install a package:
rpm -U -> It upgrades the package if it is there. Otherwise, it installs it.
rpm -i -> It only installs the package. This option doesn't override the installed package if one is already there because it can become problematic at times.
Query installed package on the system:
Check which package has installed certain program:
Imagine you want to know which package has installed nmap in the system. I can do:
rpm -qf `which nmap`
You can display more information about an installed package: