Previous |
Home | Next |
Versions: | yum 2.6.1 |
yumex 0.99.13 - (Graphical User Interface for YUM) |
[bash]# vi
/etc/yum.conf |
[main] cachedir=/var/cache/yum keepcache=0 debuglevel=2 logfile=/var/log/yum.log pkgpolicy=newest distroverpkg=redhat-release tolerant=1 exactarch=1 obsoletes=1 gpgcheck=1 plugins=1 metadata_expire=1800 retries=20 |
[bash]# vi /etc/yum.repos.d/fedora-core.repo |
[core] name=Fedora Core $releasever - $basearch #baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os/ mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-core-$releasever enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY |
[bash]# vi /etc/yum.repos.d/fedora-updates.repo |
[updates] name=Fedora Core $releasever - $basearch - Updates #baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/$releasever/$basearch/ mirrorlist=http://fedora.redhat.com/download/mirrors/updates-released-fc$releasever enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora |
[bash]# vi /etc/yum.repos.d/fedora-extras.repo |
[extras] name=Fedora Extras $releasever - $basearch #baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/$releasever/$basearch/ mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-extras-$releasever enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-extras |
You should note that by default these repositories are initially configured to use a list of mirrors, this load balances the repositories to ensure that individual servers are not always wearing the full load when remote clients are updating their files. Specific servers can be configured later which may provide a faster download source than a random mirrored server list; see next section. |
name |
Specifies a 'friendly'
name for the repository |
baseurl |
The full URL to the
packages. Can be http://
ftp:// or file:// |
mirrorlist |
Details the URL to
locate a list of mirror servers |
enabled |
Sets the repository as
(in)active for updates |
gpgcheck |
Confirms that all
packages should be cryptographically
verified - highly advisable |
gpgkey | Specifies the file and location where the cryptographic signature can be checked for each package being installed. |
[bash]# vi
/etc/yum.conf |
[main] exclude=kernel kernel-smp samba* |
[bash]# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY [bash]# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora [bash]# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-extras
|
Some
YUM Commands |
Explanations |
[base]#
yum list |
List all available
packages |
[base]#
yum
list http* |
List all packages
starting with "http" |
[base]# yum check-update | Check for available
updates |
[base]# yum update | Update all available
packages |
[base]#
yum
update samba* |
Update only the samba
packages |
[base]# yum install httpd | Install the httpd package |
[base]# yum install xmms wine | Install both the xmms and wine packages |
[base]# yum -y install httpd | Install package (answering yes to all questions) |
[base]# yum provides httpd.conf | List package name that
provides the
"httpd.conf" file |
[base]# yum clean all | Removes cached packages
and RPM headers from system |
[base]# yum remove http* | Uninstalls all packages starting with "http" |
[base]#
/etc/init.d/yum start |
Start the nightly
updating service |
[base]#
chkconfig yum on |
Enabling yum service on
runlevels |
Always take care when
using any automated update service.
Some updated packages may have different configurations and operating
requirements than the ones that are currently installed. Always check
which packages you have updated to ensure they function as they were
originally configured. |
Some
YUM Group Commands |
Explanations |
[base]#
yum grouplist |
List all groups which have packages for installation |
[base]#
yum groupinfo "System Tools" |
List all packages
in the "System Tools" group |
[base]# yum groupinstall "System Tools" | Install all of the default packages in the "System Tools" group |
[base]# yum groupupdate "Office/Productivity" | Update all available
packages within the "Office/Productivity" group |
Many ISPs provide FTP
and other mirror services to their
customers. Check your ISP, they may have a locally mirrored repository. |
[bash]# vi /etc/yum.repos.d/fedora-core.repo |
[core] name=Fedora Core $releasever - $basearch baseurl=http://mirror.pacific.net.au/linux/fedora/linux/core/$releasever/$basearch/os/ http://mirror.optus.net/fedora/core/$releasever/$basearch/os/ #mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-core-$releasever enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY failovermethod=priority |
[bash]# vi /etc/yum.repos.d/fedora-updates.repo |
[updates] name=Fedora Core $releasever - $basearch - Updates baseurl=http://mirror.pacific.net.au/linux/fedora/linux/core/updates/$releasever/$basearch/ http://public.planetmirror.com/pub/fedora/linux/core/updates/$releasever/$basearch/ ftp://ftp.pipenetworks.com/pub/fedora/linux/updates/$releasever/$basearch/ http://mirror.optus.net/fedora/core/updates/$releasever/$basearch/ #mirrorlist=http://fedora.redhat.com/download/mirrors/updates-released-fc$releasever enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora failovermethod=priority |
[bash]# vi /etc/yum.repos.d/fedora-extras.repo |
[extras] name=Fedora Extras $releasever - $basearch baseurl=http://mirror.pacific.net.au/linux/fedora/linux/extras/$releasever/$basearch/ http://public.planetmirror.com/pub/fedora/linux/extras/$releasever/$basearch/ ftp://ftp.pipenetworks.com/pub/fedora/linux/extras/$releasever/$basearch/ http://mirror.optus.net/fedora/extras/$releasever/$basearch/ #mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-extras-$releasever enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-extras failovermethod=priority |
Previous |
Home | Next |