This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
perso:dump:lnx:list_of_useful_commands [2015/05/18 11:33] Jean-Christophe Berthon Added some more zypper command and an new lsof example usage |
perso:dump:lnx:list_of_useful_commands [2015/06/18 13:22] Jean-Christophe Berthon [RPM based package system] add dnf and other info such as list of process needing restart |
||
---|---|---|---|
Line 56: | Line 56: | ||
==== RPM based package system ==== | ==== RPM based package system ==== | ||
+ | |||
+ | There is the generic ''rpm'' command. | ||
* ''rpm -Uvh package.rpm'': install a downloaded RPM package | * ''rpm -Uvh package.rpm'': install a downloaded RPM package | ||
- | * ''yum update'': | + | |
+ | Then on Fedora (up to release 21) and CentOS/RHEL, there is ''yum'' which allows to manage online repository of rpm packages. | ||
+ | * ''yum upgrade'': | ||
* ''yum install packages'': install package(s) from the repositories | * ''yum install packages'': install package(s) from the repositories | ||
* ''yum remove packages'': remove an installed package(s) | * ''yum remove packages'': remove an installed package(s) | ||
* ''yum list'': List packages (installed and available) | * ''yum list'': List packages (installed and available) | ||
+ | |||
+ | Not always present/install are plugins for yum to check which services need to be restarted after an upgrade. | ||
+ | * ''yum ps'' based on the yum ps plugin; | ||
+ | * ''needs-restarting'' based on ; | ||
+ | * Without using yum, and it works for all Linux systems (whether using RPM or not) | ||
+ | * ''lsof | egrep "DEL|deleted" | awk ' { printf("%s\t%s\n", $1, $2) }' | sort -u'' | ||
+ | |||
+ | Fedora 22 and newer have replaced ''yum'' by ''dnf'' and it is possible that future releases of CentOS/RHEL will follow suit. | ||
+ | * ''dnf upgrade'': | ||
+ | * ''dnf install packages'': install package(s) from the repositories | ||
+ | * ''dnf remove packages'': remove an installed package(s) | ||
+ | * ''dnf list'': List packages (installed and available) | ||