yum
(mostly....I've got apt-egt too at the end!)
yum - the "Yellodog updater , Modified" - is an open source, command-line package management utility. It runs on many flavours of Linux, but I'm using it for Fedora from past few years.As
usual...start with man:
man yum
Display list of updated software :
yum
list updatesUpdate system, everything:
yum update
Update system, some
specific packages:
yum
update abc
yum
update abc defList all installed packages on your system:
rpm -qa yum
list installed
Query whetehr some package abc has been installed:
rpm -qa | grep abc* yum list installed abcTo search for a package in the repositories:
yum
list perl*
Display the list of available packages
yum
list allRemove / Uninstall the specified packages (rpm):
yum
remove abc yum remove abc defDisplay a list of group software (Softwares are grouped in certian groups e.g. Engineering Tools, Devlopment tools, KDE Desktop etc.):
yum
grouplistInstall all the default packages by group:
yum
groupinstall "Development Tools"Update all the default packages by group:
yum groupupdate
"Development Tools"Remove all packages in a group:
yum groupremove "Development Tools"To install package-groups:
while read eachPackageName; do yum groupinstall "`echo $eachPackageName `" -y ; done < yum grouplist
Install particular architecture package, e.g. If you are using 64 bit RHEL version it is possible to install 32 packages:
yum install {package-name}.{architecture} yum install mysql.i386Display packages not installed via official RHN subscribed repos, i.e.packages installed via other repos:
yum list extrasDisplay
what package provides the file,
e.g. Who provided /abc/def/ghi.txt file:
yum whatprovides /abc/def/ghi.txtTo exclude a package:
yum install Something* --exclude TheExcludedPackageName
Using yum from local media, such as your DVD:Creat this file in /etc/yum.repos.d
Filename: fedoradvd
#--------------START---------------
[fedoradvd]
name=Fedora 17 x86_64
failovermethod=priority
#baseurl=file:///whereever/your/dvd/gets/mounted
baseurl=file:///run/media/AnotherLazyBicyclist/Fedora%2017%20x86_64
enabled=1
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPGKEY-fedora-$baseearch
#----------------EOF----------------
And afterwards whenever you will do a yum update, this too will be referred to....just make sure that DVD is there, and is mounted to /whereever/your/dvd/gets/mounted ;)
With a zillion thanks to:
http://www.cyberciti.biz/faq/rhel-centos-fedora-linux-yum-command-howto/
apt-get
I had to install an application using apt-get - because the publisher of that application suggested that - here're a few things about this as well:
apt-get is the command-line tool for package-handling, for Debian Linux, use it to install/remove/manage individual packages, to upgrade system (like yum), and to update packages as well. Apparantly it downloads the download the source .deb files.
Few commands are:
apt-get install {package}
apt-get remove {package}
apt-get --purge remove {package}
apt-get update
apt-get upgrade
apt-get upgrade --fix-broken -y
apt-get dist-upgrade
No comments:
Post a Comment