140 likes | 436 Views
RPM / YUM / APT. Package Managers. RPM is used by Red Hat, fedora, SuSe name-version-release.architecture.rpm Local database is @ /var/lib/rpm RPM is a backend for yum or gui package manager. RPM. Install : rpm -i or rpm --install Upgrade : rpm -U or rpm –upgrade
E N D
RPM / YUM / APT Package Managers
RPM is used by Red Hat, fedora, SuSe name-version-release.architecture.rpm Local database is @ /var/lib/rpm RPM is a backend for yum or gui package manager RPM
Install : rpm -i or rpm --install Upgrade : rpm -U or rpm –upgrade Erase : rpm -e or rpm –erase Query : rpm -q Verify : rpm -V Do not use -U or -F on kernel upgrade !! RPM Primary handlings
Rpm is a good package handler, although it has one big flaw. It's ability to handle dependencies The volunteers of Yellow Dog distribution developed Yellow dog Update Modify, short YUM. The GUI package manager usually is a front-end for yum YUM
yum install <package> yum remove <package> yum update <package> yum search <searchterm> yum list yum info <package> YUM primary handlingss
Create a file /etc/yum.repos.d/ Required information [repo-name] name=description base-url=http://yourrepository.com/path/to/repo enabled=1 Gpgcheck=1 Clear the repocache with yum clean dbcache|all YUM – Add a repository
APT is a package handler used by mainly debian and ubuntu, kubuntu, ... APT is comparable with YUM, where dpkg is comparable with RPM dpkg is not so often used as rpm, while it is better incorporated within APT APT is use as backend by the Synaptic Package manager APT
Apt consist out of 2 main sub-programs, namely apt-get and apt-cache (There are more, but these are the mainly used ones) Apt-get is used for real package handling Apt-cache is more used for information around packages APT subsystems
apt-get update : retrieve package lists apt-get upgrade : perform upgrades apt-get remove : remove packages apt-get install : install packages apt-get clean : erase downloaded archives apt-get dist-upgrade : distribution upgrade apt-get
apt-cache search <package> apt-cache policy <package> : Verify installation, version and package information apt-cache show <package> apt-cache