Linux - RPM

RPM is one of the tools for linux package install. Below are some useful commands

Please replace XXX with your rpm package name

1. Install to default folder

rpm -i XXX.rpm

2. Install with Relocation

rpm -i --prefix=/ur/path XXX.rpm

3. Check whether a rpm package can be relocated

rpm -qpi XXX.rpm | grep Relocations

4. Check for installed package in machine

rpm -qa | grep XXX

5. Uninstall a package

rpm -e XXX

6. Upgrade a package

rpm -U XXX.rpm


Comments

  1. I am not very used to the Linux environment so blogs are a great source of information when I need some.Thanks for providing informative and to the point blogs which saves me a lot of time.
    electronic signature

    ReplyDelete

Post a Comment

Popular Posts