########################################################################### Search Keyword: yum install update respository dependancies Y.U.M or yum: Yellow dog Updater, Modified Yum is an automatic updater and package installer/remover for rpm systems. It automatically computes dependencies and figures out what things should occur to install packages. Yellow dog update module yum check-update Check for available updates to the system and applications yum list List available packages that can be installed yum install Used to install the lastest package or packages yum update install Is used to install the latest version of a package or group of packages while ensuring that all dependencies are satisfied. If no package matches the given package name(s), they are assumed to be a shell glob and any matches are then installed. update If run without any packages, update will update every currently installed package. If one or more packages are specified, Yum will only update the listed packages. While updating packages, yum will ensure that all dependencies are satisfied. If no package matches the given package name(s), they are assumed to be a shell glob and any matches are then installed. If the --obsoletes flag is present yum will include package obsoletes in its calcula- tions - this makes it better for distro-version changes, for example: upgrading from somelinux 8.0 to somelinux 9. check-update Implemented so you could know if your machine had any updates that needed to be applied without running it interactively. Returns exit value of 100 if there are pack- ages available for an update. Also returns a list of the pkgs to be updated in list format. Returns 0 and no packages are available for update. upgrade Is the same as the update command with the --obsoletes flag set. See update for more details. remove or erase Are used to remove the specified packages from the system as well as removing any packages which depend on the package being removed. list Is used to list various information about available packages; more complete details are available in the List Options section below. provides or whatprovides Is used to find out which package provides some feature or file. Just use a specific name or a file-glob-syntax wildcards to list the packages available or installed that provide that feature or file. search Is used to find any packages matching a string in the description, summary, packager and package name fields of an rpm. Useful for finding a package you do not know by name but know by some word related to it. info Is used to list a description and summary information about available packages; takes the same arguments as in the List Options section below. clean Is used to clean up various things which accumulate in the yum cache directory over time. More complete details can be found in the Clean Options section below. shell Is used to enter the ’yum shell’, when a filename is specified the contents of that file is executed in yum shell mode. See yum-shell(8) for more info #################################################################################### This is an actual install of several applications using yum. Apps installed: yum-priorities rpmforge mplayer [gkeen@praxan ~]$ su - Password: [root@praxan ~]# yum install yum-priorities Loading "installonlyn" plugin Setting up Install Process Setting up repositories extras 100% |=========================| 1.1 kB 00:00 updates 100% |=========================| 951 B 00:00 base 100% |=========================| 1.1 kB 00:00 addons 100% |=========================| 951 B 00:00 Reading repository metadata in from local files Parsing package install arguments Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Downloading header for yum-priorities to pack into transaction set. yum-priorities-1.0.4-3.el 100% |=========================| 6.2 kB 00:00 ---> Package yum-priorities.noarch 0:1.0.4-3.el5.centos.2 set to be updated --> Running transaction check Dependencies Resolved ============================================================================= Package Arch Version Repository Size ============================================================================= Installing: yum-priorities noarch 1.0.4-3.el5.centos.2 base 10 k Transaction Summary ============================================================================= Install 1 Package(s) Update 0 Package(s) Remove 0 Package(s) Total download size: 10 k Is this ok [y/N]: y Downloading Packages: (1/1): yum-priorities-1.0 100% |=========================| 10 kB 00:00 Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing: yum-priorities ######################### [1/1] Installed: yum-priorities.noarch 0:1.0.4-3.el5.centos.2 Complete! [root@praxan ~]# vi /etc/yum/pluginconf.d/priorities.conf [root@praxan ~]# cd /etc/yum.repos.d [root@praxan yum.repos.d]# ls -al total 40 drwxr-xr-x 2 root root 4096 Nov 10 2007 . drwxr-xr-x 105 root root 12288 May 27 19:46 .. -rw-r--r-- 1 root root 2049 Nov 22 2007 CentOS-Base.repo -rw-r--r-- 1 root root 622 Nov 22 2007 CentOS-Media.repo [root@praxan yum.repos.d]# more Cent*Base*.repo # CentOS-Base.repo # # This file uses a new mirrorlist system developed by Lance Davis for CentOS. # The mirror system uses the connecting IP address of the client and the # update status of each mirror to pick mirrors that are updated to and # geographically close to the client. You should use this for CentOS updates # unless you are manually picking other mirrors. # # If the mirrorlist= does not work for you, as a fall back you can try the # remarked out baseurl= line instead. # # [base] name=CentOS-$releasever - Base mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5 #released updates [updates] name=CentOS-$releasever - Updates mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates #baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5 #packages used/produced in the build but not released [addons] name=CentOS-$releasever - Addons mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons #baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/ [root@praxan yum.repos.d]# ls CentOS-Base.repo CentOS-Media.repo [root@praxan yum.repos.d]# vi *Base* [root@praxan yum.repos.d]# ls CentOS-Base.repo CentOS-Media.repo [root@praxan yum.repos.d]# vi *Media* [root@praxan yum.repos.d]# ls CentOS-Base.repo CentOS-Media.repo [root@praxan yum.repos.d]# uname -i i386 [root@praxan yum.repos.d]# rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt [root@praxan yum.repos.d]# [root@praxan yum.repos.d]# rpm -K rpmforge-release-0.3.6-1.el5.rf.*.rpm [root@praxan yum.repos.d]# cd /tmp [root@praxan tmp]# ls gconfd-gkeen ksocket-gkeen sealert.log virtual-gkeen.uWQu34 gconfd-root mapping-gkeen ssh-YmDzcv3051 kde-gkeen orbit-gkeen tmp.xpi keyring-O8soaL rpmforge-release-0.3.6-1.el5.rf.i386.rpm totem.gkeen.808573404 [root@praxan tmp]# rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt [root@praxan tmp]# cd /etc/yum [root@praxan yum]# ls pluginconf.d yum-updatesd.conf [root@praxan yum]# cd /etc [root@praxan etc]# ls |grep yum yum yum.conf yum.repos.d [root@praxan etc]# more yum*repos* *** yum.repos.d: directory *** [root@praxan etc]# cd yum*repos* [root@praxan yum.repos.d]# ls CentOS-Base.repo CentOS-Media.repo mirrors-rpmforge rpmforge.repo [root@praxan yum.repos.d]# vi mirrors* [root@praxan yum.repos.d]# ls CentOS-Base.repo CentOS-Media.repo mirrors-rpmforge rpmforge.repo [root@praxan yum.repos.d]# vi romforg* [root@praxan yum.repos.d]# ls CentOS-Base.repo CentOS-Media.repo mirrors-rpmforge rpmforge.repo [root@praxan yum.repos.d]# vi rpmforg* [root@praxan yum.repos.d]# yum check-update Loading "installonlyn" plugin Loading "priorities" plugin Setting up repositories rpmforge 100% |=========================| 1.1 kB 00:00 base 100% |=========================| 1.1 kB 00:00 updates 100% |=========================| 951 B 00:00 addons 100% |=========================| 951 B 00:00 extras 100% |=========================| 1.1 kB 00:00 Reading repository metadata in from local files primary.xml.gz 100% |=========================| 2.4 MB 00:51 ################################################## 6982/6982 267 packages excluded due to repository priority protections [root@praxan yum.repos.d]# yum install mplayer Loading "installonlyn" plugin Loading "priorities" plugin Setting up Install Process Setting up repositories Reading repository metadata in from local files 267 packages excluded due to repository priority protections Parsing package install arguments Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Downloading header for mplayer to pack into transaction set. mplayer-1.0-0.38.rc1try2. 100% |=========================| 43 kB 00:01 ---> Package mplayer.i386 0:1.0-0.38.rc1try2.el5.rf set to be updated --> Running transaction check --> Processing Dependency: mplayer-fonts for package: mplayer --> Processing Dependency: libgif.so.4 for package: mplayer --> Processing Dependency: libfaac.so.0 for package: mplayer --> Processing Dependency: libungif.so.4 for package: mplayer --> Processing Dependency: libaa.so.1 for package: mplayer --> Processing Dependency: libopenal.so.0 for package: mplayer --> Processing Dependency: libmpcdec.so.5 for package: mplayer --> Processing Dependency: libXvMCW.so.1 for package: mplayer --> Processing Dependency: libdirectfb-0.9.so.25 for package: mplayer --> Processing Dependency: libmad.so.0 for package: mplayer --> Processing Dependency: libxvidcore.so.4 for package: mplayer --> Processing Dependency: libenca.so.0 for package: mplayer --> Processing Dependency: libx264.so.55 for package: mplayer --> Processing Dependency: libcucul.so.0 for package: mplayer --> Processing Dependency: liblirc_client.so.0 for package: mplayer --> Processing Dependency: libXvMC.so.1 for package: mplayer --> Processing Dependency: libtwolame.so.0 for package: mplayer --> Processing Dependency: liblzo.so.1 for package: mplayer --> Processing Dependency: libcaca.so.0 for package: mplayer --> Processing Dependency: libmp3lame.so.0 for package: mplayer --> Processing Dependency: libdvdnav.so.4 for package: mplayer --> Restarting Dependency Resolution with new changes. --> Populating transaction set with selected packages. Please wait. ---> Downloading header for libmpcdec to pack into transaction set. libmpcdec-1.2.6-1.el5.rf. 100% |=========================| 4.2 kB 00:00 ---> Package libmpcdec.i386 0:1.2.6-1.el5.rf set to be updated ---> Downloading header for directfb to pack into transaction set. directfb-0.9.25.1-1.el5.r 100% |=========================| 31 kB 00:00 ---> Package directfb.i386 0:0.9.25.1-1.el5.rf set to be updated ---> Downloading header for libdvdnav to pack into transaction set. libdvdnav-0.1.10-3.el5.rf 100% |=========================| 4.1 kB 00:00 ---> Package libdvdnav.i386 0:0.1.10-3.el5.rf set to be updated ---> Downloading header for x264 to pack into transaction set. x264-0.0.0-0.4.20070529.e 100% |=========================| 4.5 kB 00:00 ---> Package x264.i386 0:0.0.0-0.4.20070529.el5.rf set to be updated ---> Downloading header for openal to pack into transaction set. openal-0.0.8-2.el5.rf.i38 100% |=========================| 4.5 kB 00:00 ---> Package openal.i386 0:0.0.8-2.el5.rf set to be updated ---> Downloading header for twolame to pack into transaction set. twolame-0.3.12-1.el5.rf.i 100% |=========================| 4.1 kB 00:00 ---> Package twolame.i386 0:0.3.12-1.el5.rf set to be updated ---> Downloading header for lirc to pack into transaction set. lirc-0.6.6-4.el5.rf.i386. 100% |=========================| 26 kB 00:00 ---> Package lirc.i386 0:0.6.6-4.el5.rf set to be updated ---> Downloading header for aalib to pack into transaction set. aalib-1.4.0-5.el5.rf.i386 100% |=========================| 6.1 kB 00:00 ---> Package aalib.i386 0:1.4.0-5.el5.rf set to be updated ---> Downloading header for lzo to pack into transaction set. lzo-1.08-4.2.el5.rf.i386. 100% |=========================| 5.1 kB 00:00 ---> Package lzo.i386 0:1.08-4.2.el5.rf set to be updated ---> Downloading header for lame to pack into transaction set. lame-3.97-1.el5.rf.i386.r 100% |=========================| 6.3 kB 00:01 ---> Package lame.i386 0:3.97-1.el5.rf set to be updated ---> Downloading header for mplayer-fonts to pack into transaction set. mplayer-fonts-1.1-3.0.rf. 100% |=========================| 14 kB 00:00 ---> Package mplayer-fonts.noarch 0:1.1-3.0.rf set to be updated ---> Downloading header for enca to pack into transaction set. enca-1.9-4.el5.rf.i386.rp 100% |=========================| 4.9 kB 00:00 ---> Package enca.i386 0:1.9-4.el5.rf set to be updated ---> Downloading header for libcaca to pack into transaction set. libcaca-0.99-0.1.beta11.e 100% |=========================| 3.7 kB 00:00 ---> Package libcaca.i386 0:0.99-0.1.beta11.el5.rf set to be updated ---> Downloading header for libmad to pack into transaction set. libmad-0.15.1b-4.el5.rf.i 100% |=========================| 4.2 kB 00:00 ---> Package libmad.i386 0:0.15.1b-4.el5.rf set to be updated ---> Downloading header for faac to pack into transaction set. faac-1.25-2.el5.rf.i386.r 100% |=========================| 4.2 kB 00:00 ---> Package faac.i386 0:1.25-2.el5.rf set to be updated ---> Downloading header for libXvMC to pack into transaction set. libXvMC-1.0.2-2.1.i386.rp 100% |=========================| 6.2 kB 00:00 ---> Package libXvMC.i386 0:1.0.2-2.1 set to be updated ---> Downloading header for giflib to pack into transaction set. giflib-4.1.3-7.1.el5.1.i3 100% |=========================| 5.2 kB 00:00 ---> Package giflib.i386 0:4.1.3-7.1.el5.1 set to be updated ---> Downloading header for xvidcore to pack into transaction set. xvidcore-1.1.3-1.el5.rf.i 100% |=========================| 4.4 kB 00:00 ---> Package xvidcore.i386 0:1.1.3-1.el5.rf set to be updated --> Running transaction check --> Processing Dependency: libsndfile.so.1 for package: twolame --> Processing Dependency: libglut.so.3 for package: libcaca --> Processing Dependency: libmp4v2.so.0 for package: faac --> Processing Dependency: libsndfile.so.1(libsndfile.so.1.0) for package: twolame --> Restarting Dependency Resolution with new changes. --> Populating transaction set with selected packages. Please wait. ---> Downloading header for libsndfile to pack into transaction set. libsndfile-1.0.17-1.el5.r 100% |=========================| 5.5 kB 00:00 ---> Package libsndfile.i386 0:1.0.17-1.el5.rf set to be updated ---> Downloading header for freeglut to pack into transaction set. freeglut-2.4.0-7.1.el5.i3 100% |=========================| 8.6 kB 00:00 ---> Package freeglut.i386 0:2.4.0-7.1.el5 set to be updated ---> Downloading header for libmp4v2 to pack into transaction set. libmp4v2-1.5.0.1-3.el5.rf 100% |=========================| 4.7 kB 00:00 ---> Package libmp4v2.i386 0:1.5.0.1-3.el5.rf set to be updated --> Running transaction check Dependencies Resolved ============================================================================= Package Arch Version Repository Size ============================================================================= Installing: mplayer i386 1.0-0.38.rc1try2.el5.rf rpmforge 5.1 M Installing for dependencies: aalib i386 1.4.0-5.el5.rf rpmforge 167 k directfb i386 0.9.25.1-1.el5.rf rpmforge 4.3 M enca i386 1.9-4.el5.rf rpmforge 177 k faac i386 1.25-2.el5.rf rpmforge 134 k freeglut i386 2.4.0-7.1.el5 base 142 k giflib i386 4.1.3-7.1.el5.1 base 39 k lame i386 3.97-1.el5.rf rpmforge 619 k libXvMC i386 1.0.2-2.1 base 18 k libcaca i386 0.99-0.1.beta11.el5.rf rpmforge 236 k libdvdnav i386 0.1.10-3.el5.rf rpmforge 212 k libmad i386 0.15.1b-4.el5.rf rpmforge 82 k libmp4v2 i386 1.5.0.1-3.el5.rf rpmforge 895 k libmpcdec i386 1.2.6-1.el5.rf rpmforge 52 k libsndfile i386 1.0.17-1.el5.rf rpmforge 476 k lirc i386 0.6.6-4.el5.rf rpmforge 241 k lzo i386 1.08-4.2.el5.rf rpmforge 143 k mplayer-fonts noarch 1.1-3.0.rf rpmforge 1.0 M openal i386 0.0.8-2.el5.rf rpmforge 319 k twolame i386 0.3.12-1.el5.rf rpmforge 131 k x264 i386 0.0.0-0.4.20070529.el5.rf rpmforge 789 k xvidcore i386 1.1.3-1.el5.rf rpmforge 531 k Transaction Summary ============================================================================= Install 22 Package(s) Update 0 Package(s) Remove 0 Package(s) Total download size: 16 M Is this ok [y/N]: y Downloading Packages: (1/22): lirc-0.6.6-4.el5. 100% |=========================| 241 kB 00:03 (2/22): directfb-0.9.25.1 100% |=========================| 4.3 MB 01:32 (3/22): xvidcore-1.1.3-1. 100% |=========================| 531 kB 00:10 (4/22): libsndfile-1.0.17 100% |=========================| 476 kB 00:09 (5/22): freeglut-2.4.0-7. 100% |=========================| 142 kB 00:01 (6/22): aalib-1.4.0-5.el5 100% |=========================| 167 kB 00:02 (7/22): mplayer-fonts-1.1 100% |=========================| 1.0 MB 00:21 (8/22): libmad-0.15.1b-4. 100% |=========================| 82 kB 00:01 (9/22): mplayer-1.0-0.38. 100% |=========================| 5.1 MB 01:48 (10/22): lzo-1.08-4.2.el5 100% |=========================| 143 kB 00:03 (11/22): openal-0.0.8-2.e 100% |=========================| 319 kB 00:06 (12/22): twolame-0.3.12-1 100% |=========================| 131 kB 00:02 (13/22): libdvdnav-0.1.10 100% |=========================| 212 kB 00:03 (14/22): enca-1.9-4.el5.r 100% |=========================| 177 kB 00:02 (15/22): faac-1.25-2.el5. 100% |=========================| 134 kB 00:02 (16/22): libXvMC-1.0.2-2. 100% |=========================| 18 kB 00:00 (17/22): libmpcdec-1.2.6- 100% |=========================| 52 kB 00:01 (18/22): x264-0.0.0-0.4.2 100% |=========================| 789 kB 00:18 (19/22): lame-3.97-1.el5. 100% |=========================| 619 kB 00:13 (20/22): libcaca-0.99-0.1 100% |=========================| 236 kB 00:03 (21/22): libmp4v2-1.5.0.1 100% |=========================| 895 kB 00:19 (22/22): giflib-4.1.3-7.1 100% |=========================| 39 kB 00:00 Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing: giflib ####################### [ 1/22] Installing: libmp4v2 ####################### [ 2/22] Installing: faac ####################### [ 3/22] Installing: lame ####################### [ 4/22] Installing: x264 ####################### [ 5/22] Installing: libmpcdec ####################### [ 6/22] Installing: libXvMC ####################### [ 7/22] Installing: enca ####################### [ 8/22] Installing: libdvdnav ####################### [ 9/22] Installing: openal ####################### [10/22] Installing: lzo ####################### [11/22] Installing: libmad ####################### [12/22] Installing: mplayer-fonts ####################### [13/22] Installing: aalib ####################### [14/22] Installing: freeglut ####################### [15/22] Installing: libcaca ####################### [16/22] Installing: libsndfile ####################### [17/22] Installing: twolame ####################### [18/22] Installing: xvidcore ####################### [19/22] Installing: directfb ####################### [20/22] Installing: lirc ####################### [21/22] Installing: mplayer ####################### [22/22] Installed: mplayer.i386 0:1.0-0.38.rc1try2.el5.rf Dependency Installed: aalib.i386 0:1.4.0-5.el5.rf directfb.i386 0:0.9.25.1-1.el5.rf enca.i386 0:1.9-4.el5.rf faac.i386 0:1.25-2.el5.rf freeglut.i386 0:2.4.0-7.1.el5 giflib.i386 0:4.1.3-7.1.el5.1 lame.i386 0:3.97-1.el5.rf libXvMC.i386 0:1.0.2-2.1 libcaca.i386 0:0.99-0.1.beta11.el5.rf libdvdnav.i386 0:0.1.10-3.el5.rf libmad.i386 0:0.15.1b-4.el5.rf libmp4v2.i386 0:1.5.0.1-3.el5.rf libmpcdec.i386 0:1.2.6-1.el5.rf libsndfile.i386 0:1.0.17-1.el5.rf lirc.i386 0:0.6.6-4.el5.rf lzo.i386 0:1.08-4.2.el5.rf mplayer-fonts.noarch 0:1.1-3.0.rf openal.i386 0:0.0.8-2.el5.rf twolame.i386 0:0.3.12-1.el5.rf x264.i386 0:0.0.0-0.4.20070529.el5.rf xvidcore.i386 0:1.1.3-1.el5.rf Complete! [root@praxan yum.repos.d]# which mplayer /usr/bin/mplayer [root@praxan yum.repos.d]# mplayer & [1] 4108 [root@praxan yum.repos.d]# MPlayer 1.0rc1-4.1.2 (C) 2000-2006 MPlayer Team CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, Model: 8, Stepping: 3) CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0 Creating config file: /root/.mplayer/config Usage: mplayer [options] [url|path/]filename Basic options: (complete list in the man page) -vo select video output driver ('-vo help' for a list) -ao select audio output driver ('-ao help' for a list) vcd:// play (S)VCD (Super Video CD) track (raw device, no mount) dvd:// play DVD title from device instead of plain file -alang/-slang select DVD audio/subtitle language (by 2-char country code) -ss seek to given (seconds or hh:mm:ss) position -nosound do not play sound -fs fullscreen playback (or -vm, -zoom, details in the man page) -x -y set display resolution (for use with -vm or -zoom) -sub specify subtitle file to use (also see -subfps, -subdelay) -playlist specify playlist file -vid x -aid y select video (x) and audio (y) stream to play -fps x -srate y change video (x fps) and audio (y Hz) rate -pp enable postprocessing filter (details in the man page) -framedrop enable frame dropping (for slow machines) Basic keys: (complete list in the man page, also check input.conf) <- or -> seek backward/forward 10 seconds down or up seek backward/forward 1 minute pgdown or pgup seek backward/forward 10 minutes < or > step backward/forward in playlist p or SPACE pause movie (press any key to continue) q or ESC stop playing and quit program + or - adjust audio delay by +/- 0.1 second o cycle OSD mode: none / seekbar / seekbar + timer * or / increase or decrease PCM volume x or z adjust subtitle delay by +/- 0.1 second r or t adjust subtitle position up/down, also see -vf expand ------------------------------------------------------------------------------------------------ The complete instruction for this I found at.................. http://wiki.centos.org/Repositories/RPMForge LIST OPTIONS The following are the ways which you can invoke yum in list mode. Note that all list commands include information on the version of the pack- age. yum list [all | glob_exp1] [glob_exp2] [...] List all available and installed packages. yum list available [glob_exp1] [...] List all packages in the yum repositories available to be installed. yum list updates [glob_exp1] [...] List all packages with updates available in the yum reposito- ries. yum list installed [glob_exp1] [...] List the packages specified by args. If an argument does not match the name of an available package, it is assumed to be a shell-style glob and any matches are printed.