The following is a summary of the commands (and options) that can be used on some, more popular, Linux distributions for finding and installing the packages used by the GigE-V Framework for Linux.
|
Task |
apt
(.deb) (Ubuntu/Debian
family) |
yum
(.rpm) (older RedHat family) |
dnf
(.rpm) (newer RedHat family) |
zipper
(.rpm) (Suse/openSuse family) |
|
Update package
list |
apt-get update |
yum check-update |
dnf check-update |
zypper refresh |
|
install from
repository |
apt-get install
pkgname |
yum install
pkgname |
dnf install
pkgname |
zypper install
pkgname |
|
update installed
package |
apt-get install
pkgname |
yum update
pkgname |
dnf update
pkgname |
zypper update –t
package pkgname |
|
remove package |
apt-get remove
pkgname |
yum erase pkgname |
dnf erase pkgname |
zypper remove
pkgname |
|
show package info |
apt-cache show pkgname |
yum info pkgname |
dnf info pkgname |
zypper info pkgname |
|
list installed
packages |
dpkg -l |
rpm -qa |
rpm -qa |
zypper search -is |
|
search for
package by name : by pattern : |
apt-cache search pkgname apt-cache search pattern |
yum list pkgname yum search
pattern |
dnf list pkgname dnf search
pattern |
zypper search
pkgname zypper search –t
pattern pattern |
|
list known repos |
cat /etc/apt/sources.list |
yum reposlist |
dnf repolist |
zypper repos |
|
add repository |
Add URL to file /etc/apt/sources.list |
Add *.repo files
to /etc/yum.repos.d |
Add *.repo files
to /etc/yum.repos.d And/or edit /etc/dnf/dnf.conf |
zypper addrepo
URL reponame |
|
remove repository |
Remove URL from
file /etc/apt/sources.list |
Remove *.repo
files from /etc/yum.repos.d |
Remove *.repo
files from /etc/yum.repos.d And/or edit /etc/dnf/dnf.conf |
zypper removerepo
reponame |
Usually, if the command line program cannot find the desired package, the graphical program can be used to search using regular expression patterns to find candidates and the package information / descriptions returned can be used to determine which package to install.
Note: Different Linux distributions sometimes call the same packages by different, but similar, names. Some attention is required in order to ensure that the proper package is found and installed.
Related Topics