yum\rpm mini howto


#### Installing and Upgrading Packages with Yum ####

# yum check-update    update your package list
# yum search ${keyword}    To search for a package to install

# yum [-y] install ${package name/s}    To install a new package
# yum localinstall ${absolute path to package name/s}     Used when using yum to install a package located locally in the machine.

# yum update    To update all installed packages
# yum update ${package name/s}    To update a single package
# yum update gltron ktron tuxracer   

If the --obsoletes option is used (i.e. yum --obsoletes ${package name/s}, yum will process obsolete packages. As such, packages that are obsoleted accross updates will be removed and replaced accordingly.

# yum remove ${package name/s}    Used to remove specified packages

# yum provides ${file name}    you need a particular library, but you don't know what package provides it. Yum will find it.
# yum provides libc6.1-1.so.2   

# yum list installed    To list all installed packages
# yum list installed | grep -i tux   
# yum list updates    To show packages with available updates
# yum info tuxracer    To show information on a package,
# yum clean all    To remove cached packages and old headers, preserving the current headers


Good links:
http://wiki.centos.org/TipsAndTricks/YumAndRPM
http://www.redhatmagazine.com/2008/01/16/tips-and-tricks-yum-security Tips and tricks: yum-security
http://kbase.redhat.com/faq/docs/DOC-2531 yum equivalents of up2date

http://www.opennet.ru/base/sys/rpm_create.txt.html - Создание собственных RPM пакетов
http://tigro.info/blog/index.php?id=375 - Цикл статей по сборке RPM и DEB пакетов
http://www.sys-adm.org.ua/system/rpm.php - Основы работы с менеджером пакетов RPM
http://www.sys-adm.org.ua/system/rpm-build.php - Собираем RPM пакет своими руками

Home

Sergej A. Kandyla skandyla at gmail.com
Any comments and suggestions are welcome.
CentOS FreeBSD