YUM is a tool within Yellow Dog Linux that searches for and downloads updates, applications and tools for your YDL OS.
YUM is already installed in YDL 5.0. You can test this by opening up a Terminal (Menu: Applications->Accessories -->Terminal) and typing
yum:
This won't hurt your system and it won't update anything, it will just display information about the YUM program.
It is important to configure YUM so that it points to current and correct update sites.
Pointing to the right updates involves changing some files and creating some files. The first file you have to change is called yum.conf. You may have to login as root to change the files. Then usse your file explorer to navigate to the etc folder in your File System, double click the etc folder to open it up.
Scroll to the bottom of this folder and you should see a file called yum.conf. Right click on this file and Open With->Text Editor. Replace the contents of your yum.conf with the following and save. Copy and paste this bad boy into your file...
Code:
[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=yellowdog-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=0
plugins=1
metadata_expire=1800
[freshrpms]
name=Fresh 4.0 rpms
baseurl=http://ftp.freshrpms.net/pub/freshrpms/yellowdog/4.0/
# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
name=Yellow Dog Linux 5.0 base
baseurl=http://ydl.osuosl.org/yum/5.0/base/RPMS/
name=Yellow Dog Linux 5.0 updates
baseurl=http://ydl.osuosl.org/yum/5.0/updates/
Next scroll up above the yum.conf file in the etc folder and open the folder called yum.repos.d. You'll should find 3 files in this folder:
1. yellowdog-base.repo
2. yellowdog-updates.repo
3. yellowdog-extras.repo
The contents of these 3 files should be modified as follows:
1. yellowdog-base.repo:
Code:
[base]
name=Yellow Dog Linux 5.0 Base
baseurl=http://ftp.yellowdoglinux.com/pub/yellowdog/yum/5.0/base/
mirrorlist=http://www.terrasoftsolutions.com/resources/yd50-base-mlist
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY
2. yellowdog-updates.repo
Code:
[updates]
name=Yellow Dog Linux 5.0 Updates
baseurl=http://mirror.mcs.anl.gov/yellowdog/yum/5.0/updates/
mirrorlist=http://www.terrasoftsolutions.com/resources/yd50-updates-mlist
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY
3. yellowdog-extras.repo
Code:
[extras]
name=Yellow Dog Linux 5.0 Extras
baseurl=http://mirror.mcs.anl.gov/yellowdog/yum/5.0/extras/
mirrorlist=http://www.terrasoftsolutions.com/resources/yd50-extras-mlist
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY
In addition to these 3 files we'll be adding 4 more. The following files should be created (right click on an empty spot in the folder and select Create Document->Empty File)
ydl-extras.repo (this is the name of the file to save it as)
That's all there is to it. yum should now be configured and you're ready to download your first update.
3. Installing YUMEX
You DON'T have to run YUM in Terminal. There is a Graphical User Interface (GUI) available for the YUM tool and you can use YUM to download and install this tool called YUMEX
Open Terminal and type
yum search yumex
If all went well you should see something like this:
# yum search yumex
Loading "installonlyn" plugin
Searching Packages:
Setting up repositories
base [1/4]
base 100% ========================= 1.1 kB 00:00
updates [2/4]
updates 100% ========================= 951 B 00:00
freshrpms [3/4]
freshrpms 100% ========================= 951 B 00:00
extras [4/4]
extras 100% ========================= 951 B 00:00
Reading repository metadata in from local files
primary.xml.gz 100% ========================= 759 kB 00:05
base : ################################################## 2208/2208
Added 2208 new packages, deleted 9 old in 25.77 seconds
yumex.noarch 1.0.3-3.0.fc5 installed
Matched from:
yumex [Please register to see this link. ]
Assuming you successfully found yumex (It should be found by the FreshRPMS.repo you created earlier) go ahead and install it by typing in Terminal:
yum install yumex
Once the package is installed type: yumex in Terminal and wait for YUMEX to open.
hi haxen thank you very much for this direction to install yum very usefull i try this but i got error at the end.do you have any idea? sorry for my english im french! nice to be here !!!!!viva linux!!!!!
[root@localhost sim]# cp -r yum.repos.d /etc
[root@localhost sim]# yum search yumex
Loading "installonlyn" plugin
Searching Packages:
Setting up repositories
base [1/4]
base 100% |=========================| 1.1 kB 00:00
updates [2/4]
updates 100% |=========================| 951 B 00:00
freshrpms [3/4]
freshrpms 100% |=========================| 951 B 00:00
extras [4/4]
extras 100% |=========================| 951 B 00:00
Reading repository metadata in from local files
primary.xml.gz 100% |=========================| 759 kB 00:01
base : ################################################## 2208/2208
Added 2208 new packages, deleted 0 old in 24.30 seconds
primary.xml.gz 100% |=========================| 9.3 kB 00:00
updates : ################################################## 9/9
Added 9 new packages, deleted 0 old in 0.34 seconds
primary.xml.gz 100% |=========================| 54 kB 00:00
freshrpms : ################################################## 155/155
Added 155 new packages, deleted 0 old in 1.66 seconds
primary.xml.gz 100% |=========================| 210 B 00:00
Added 0 new packages, deleted 0 old in 0.02 seconds
No Matches found--------------------------------------------------------------------------------------------------
[root@localhost yum.repos.d]# yum install yumex
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
base [1/4]
updates [2/4]
freshrpms [3/4]
extras [4/4]
Reading repository metadata in from local files
Parsing package install arguments
No Match for argument: yumex
Nothing to do
did i have to install the update to get this before? and if,how do i update a .repo file?
i have posted in downlaod a new yum config whit more stuff,use only the yum.conf make sure yum.repos.d is empty and you need rpm-gpg-key found in the download pack text info..
I did all this and I get this error any ideas, this is the same problem the guy above me had. I'm using the ydl iso from the public mirrors.
yum install yumex
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
base [1/4]
updates [2/4]
freshrpms [3/4]
extras [4/4]
Reading repository metadata in from local files
Parsing package install arguments
No Match for argument: yumex
Nothing to do
This is some of the messages I received during the search
Added 2208 new packages, deleted 0 old in 27.88 seconds
primary.xml.gz 100% |=========================| 9.3 kB 00:00
updates : ################################################## 9/9
Added 9 new packages, deleted 0 old in 0.33 seconds
Added 155 new packages, deleted 0 old in 1.98 seconds
primary.xml.gz 100% |=========================| 210 B 00:00
Added 0 new packages, deleted 0 old in 0.01 seconds
No Matches found
Wolfe, grab the UPDATED yum.conf and repos files in the Downloads section. You know where they go right? Try them out, replace your old files with these ones and then run yum install updates and yumex and report back the exact error message (cut and paste it into a post) if you get one.
Could not save the file /etc/yum.repos.d/yellowdog-extras.repo.
You do not have the permissions necessary to save the file. Please, check that you typed the location correctly and try again.
thats the error i get when updating the repos
I even tried moving the file by shell command then copied the text from thread and pasted to repos but nothing, so uh, what is the command to open stuff like that in terminal? It won't let me create the new documents either....
EDIT AGAIN!! THIS TIME I GOT IT WORKING after YUMEX search....
[root@0pt1mu5 dcy4pres]# yum search yumex
Repository livna-stable is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository fedora-extras is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository base is listed more than once in the configuration
Repository freshrpms is listed more than once in the configuration
Loading "installonlyn" plugin
Searching Packages:
Setting up repositories
livna-stable [1/6]
livna-stable 100% |=========================| 951 B 00:00
base [2/6]
base 100% |=========================| 1.1 kB 00:00
fedora-extras [3/6]
fedora-extras 100% |=========================| 1.1 kB 00:00
updates [4/6]
updates 100% |=========================| 951 B 00:00
freshrpms [5/6]
freshrpms 100% |=========================| 951 B 00:00
extras [6/6]
extras 100% |=========================| 951 B 00:00
Reading repository metadata in from local files
primary.xml.gz 100% |=========================| 119 kB 00:00
livna-stab: ################################################## 256/256
Added 256 new packages, deleted 0 old in 5.44 seconds
primary.xml.gz 100% |=========================| 759 kB 00:03
base : ################################################## 2208/2208
Added 2208 new packages, deleted 0 old in 24.86 seconds
primary.xml.gz 100% |=========================| 1.8 MB 00:09
fedora-ext: ################################################## 6030/6030
Added 6030 new packages, deleted 0 old in 68.12 seconds
primary.xml.gz 100% |=========================| 9.3 kB 00:00
updates : ################################################## 9/9
Added 9 new packages, deleted 0 old in 0.34 seconds
primary.xml.gz 100% |=========================| 54 kB 00:00
freshrpms : ################################################## 155/155
Added 155 new packages, deleted 0 old in 1.65 seconds
primary.xml.gz 100% |=========================| 210 B 00:00
Added 0 new packages, deleted 0 old in 0.01 seconds
yumex.noarch 1.0.2-1.0.fc5 fedora-extras
Matched from:
yumex [Please register to see this link. ]
yumex.noarch 1.0.3-3.0.fc5 fedora-extras
Matched from:
yumex [Please register to see this link. ]
[root@0pt1mu5 dcy4pres]#
THEN.....
[root@0pt1mu5 dcy4pres]# yum install yumex
Repository livna-stable is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository fedora-extras is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository base is listed more than once in the configuration
Repository freshrpms is listed more than once in the configuration
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
livna-stable [1/6]
base [2/6]
fedora-extras [3/6]
updates [4/6]
freshrpms [5/6]
extras [6/6]
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for yumex to pack into transaction set.
yumex-1.0.3-3.0.fc5.noarc 100% |=========================| 21 kB 00:00
---> Package yumex.noarch 0:1.0.3-3.0.fc5 set to be updated
--> Running transaction check
Dependencies Resolved
================================================== ===========================
Package Arch Version Repository Size
================================================== ===========================
Installing:
yumex noarch 1.0.3-3.0.fc5 fedora-extras 409 k
Transaction Summary
================================================== ===========================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 409 k
Is this ok [y/N]: y
Downloading Packages:
(1/1): yumex-1.0.3-3.0.fc 100% |=========================| 409 kB 00:01
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: yumex ######################### [1/1]