Quick How to on Red Hat Package Manager (RPM)
How to install packages with all the dependency packages if all the packages are available at a common repository?
Ans : rpm -ivh --aid packagename.How to check, where a particular package installed it’s configuration files.
Ans : rpm -qc packagename.
How to check the change log of the installed package.
Ans : rpm -q --changelog packagename.
How to check, where a particular package installed it’s doc files.
Ans : rpm -qd packagenme
How to check all the files installed by package?
Ans : rpm -q --filesbypkg packagename
How to check the version of files installed by a package
Ans : rpm -qi packagename
How to check the dependencies for a particular packages i.e. Required libraries packages etc.
Ans : rpm -q -R packagename.
How to upgrade the packages which are already installed on to the linux box.
Ans : rpm -F install options packagename.
What is the command to update only the rpm database.
Ans : rpm -i --justdb packagename
What is the command to check whether a particular package installation would be successful but would not actually install the package.
Ans : rpm -ivh --test packagename
How to check that a particular file belong to which package
Ans : rpm -qf filename
How to list files in a package
Ans : rpm -ql packagename
How to verify whether the files installed by package are intact or been tampered/corrupted.
Ans : rpm -qs packagename
What is the command to create a new RPM Database
Ans : rpm --initdb
What is the command to rebuild the RPM Database
Ans : rpm --rebuilddb
Cheers!!
Vaibhav
0 comments:
Post a Comment