Saturday, October 21, 2017

RPM package: install, upgrade, erase

Install a RPM package


Code: [ Select ]
rpm –ivh packagename.rpm


Upgrade a RPM package


Code: [ Select ]
rpm –Uvh packagename.rpm


Verify a RPM package was installed


Code: [ Select ] [ Line Numbers Off ]
  1. rpm -qa | grep packagename
  2. locate packagename


Create a tar file


Code: [ Select ]
tar –cvf myfiles.tar mydir/


Create a tar file gzipped


Similar to above, but add a z for creating .tgz (.tar.gz) files)
Code: [ Select ]
tar –cvzf myfiles.tgz mydir/


Standard install from source


A common way to install software from source will be done similarly to the below:
Code: [ Select ] [ Line Numbers Off ]
  1. tar –xvzf Apackage.tar.gz
  2. cd Apackage
  3. ./configure
  4. make
  5. make install

No comments:

Post a Comment