-   Linux - Newbie (
-   -   Packages instalation on Fedora after system install (

Rostfrei 06-22-2006 02:47 AM

Packages instalation on Fedora after system install

I have a newbie question about software install. I installed Fedora C2 and everything went ok as Fedora installer is really great. I installed it without X windows. After reboot all work fine.

At this point I found out I want to add some more packages. How do I do that? How do I check the remaining packages on the CD ROMs? Here there is no more nice graphic packaging system and dependencies checkinh. I know how to install package with "rpm -i", but how do I get a list of available packages on the CD ROMs and what about dependencies?

Thank you for all your help!


b0uncer 06-22-2006 03:06 AM

Hi, Rostfrei!

For that I suggest you use Yum, a program that you can tell what you want to install, after which it will try to find the package you asked for, check it's dependencies automatically, ask you if you wish to install them and do the job. It's a bit slower than apt (on Debian systems), but seems to work altogether. Usually it's used to download packages from the internet, but you can configure it to use local reposities too, like a cdrom for example. You just need to know the place where the packages are (so put the Fedora Core cd in, and check out the directory where the packages reside).

I recall the config file is found in /etc/yum.d/ under "reposity" or "reposities". You'll find it when you look for it. Actually there is a directory that contains multiple files, each one of them containing information about one reposity (a reposity is a place that contains packages).

You should simply create one more file, and put the needed information inside it. First off, anyway, you need to know how to do it; it's helpful to read the yum man page with the command

man yum
and search down for "reposities"; there is quite a good explanation on how you add new reposities that reside on a local filesystem. Probably it's just writing a line like "file://location/of/the/packages", but refer to the man page.

After that you can copy one of the existing reposity files and edit that so it suits you; change the internet-URL to a local destination, save the file and run yum. To copy an existing file, do the following:
(repofile1 means here some of the existing reposity filenames; myownrepo is the filename of your local reposity config file - you can choose this as you wish; /etc/yum.d/reposities is the place where these files are, so you may need to change this since I'm not completely sure it is that; editorname means some text-editor program name, such as vim, nano, joe or some other)

cd /etc/yum.d/reposities
cp repofile myownrepo
editorname myownrepo

To cut it short: you need to create (or copy and then edit) a new reposity file under the reposity directory under /etc/yum.d (if it really was exactly that), type the local place (of the cdrom; it's something like /media/cdrom/Fedora/i386/rpms/... but make sure what it is on your discs) URL in the file, save it and then run yum update:


yum update && yum install packagename
where packagename refers to some application name you want it to install. Yum automatically checks out every reposity for the files and downloads the packages when it finds them, so you just need to have some reposity files and know how to start Yum (read man yum for information about that).

EDIT: almost forgot to mention this: Yum contains some internet reposities by default, so if you have a working internet connection, you should be able to get at least some of the common programs with Yum from the internet without doing quite much at all; adding reposities comes into picture only when the current reposities do not contain the package(s) you want to install, or when you want to define some local package places to be used.

Rostfrei 06-22-2006 03:28 AM

Thank you very much for the comprehensive answer! I'll check Yum man page and if I won't understand something I'll ask further.

Best regards,

Rostfrei 06-22-2006 04:20 AM

Additional question
I checked Yum man pages and they are clear to me except for one thing. I have many CD's with RPM's but only one CDROM mount point. How do I instruct yum to look for packages on 1st., 2nd., etc. CD? All I can doo is add the baseurl point (/etc/yum.conf) which is always in my case /mnt/cdrom/Fedora/RPMS.


Rostfrei 06-22-2006 06:43 AM


I tried CD1 according to the man page. I added the following entry to the /etc/yum.conf

name=Fedora CD1

Now the command yum update fails with no such file or directory for


which indeed does not exist.

What can I do next?


All times are GMT -5. The time now is 11:39 AM.