LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-22-2006, 02:47 AM   #1
Rostfrei
Member
 
Registered: Aug 2005
Location: Slovenia
Distribution: Fedora, Ubuntu
Posts: 69

Rep: Reputation: 15
Packages instalation on Fedora after system install


Hello!

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!

Regards,
 
Old 06-22-2006, 03:06 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
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
Code:
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)
Code:
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:

Code:
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.

Last edited by b0uncer; 06-22-2006 at 03:09 AM.
 
Old 06-22-2006, 03:28 AM   #3
Rostfrei
Member
 
Registered: Aug 2005
Location: Slovenia
Distribution: Fedora, Ubuntu
Posts: 69

Original Poster
Rep: Reputation: 15
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,
 
Old 06-22-2006, 04:20 AM   #4
Rostfrei
Member
 
Registered: Aug 2005
Location: Slovenia
Distribution: Fedora, Ubuntu
Posts: 69

Original Poster
Rep: Reputation: 15
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.

Regards,
 
Old 06-22-2006, 06:43 AM   #5
Rostfrei
Member
 
Registered: Aug 2005
Location: Slovenia
Distribution: Fedora, Ubuntu
Posts: 69

Original Poster
Rep: Reputation: 15
Hello!

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

[fedoracd1]
name=Fedora CD1
baseurl=file://mnt/cdrom/Fedora/RPMS


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

/mnt/cdrom/Fedora/RPMS/headers/header.info

which indeed does not exist.

What can I do next?

Regards,
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
where yum saves downloaded packages . how can i install all of these on other system amolgupta Linux - Software 3 11-22-2007 06:54 AM
Searching for tool to install debian packages for RPM based distro (Fedora) LiNuXkOlOnIe Linux - Software 2 04-22-2006 07:31 AM
Fedora Core 3 Install Packages Zaskar Fedora 1 02-17-2005 02:12 AM
Fedora FC2 Arch= x86_64 install leaves duplicate packages in RPM database w8hrq Fedora - Installation 2 10-05-2004 01:14 PM
Don't read FC2 instalation cd when add/remove packages marper Fedora 1 08-15-2004 09:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration