arshadmomen Posted March 25, 2006 Report Share Posted March 25, 2006 (edited) After using Mandrake/Mandriva for a couple of years, I decided to test-drive the new Fedora Core 5 on one of my machines. After installing it , I I realized that I forgot to install stuff like tetex/gcc etc. Now I am faced with the very annoying problem of finding the rpms from the 5 CDs and installing them manually. On Mandriva, this problem is taken care of by urpmi. What is the analog of this on Fedora? I know of yum but can it be used while being offline, i.e. not using the online repositories? In FC4 one had system-config-packages but on FC5 there is pirut which again needs yum to be set up....... I tried using pirut but it keeps on saying " unable to retrieve software information" and then dies. I do not wish reinstall fedora ( it takes way much longer than mandriva) Can any one help me out here? Thanks in advance, A. Edited March 25, 2006 by arshadmomen Quote Link to comment Share on other sites More sharing options...
aioshin Posted March 25, 2006 Report Share Posted March 25, 2006 (edited) I think the right place is here : http://www.fedorafaq.org/ basically.... Edited March 25, 2006 by aioshin Quote Link to comment Share on other sites More sharing options...
arshadmomen Posted March 25, 2006 Author Report Share Posted March 25, 2006 I think the right place is here : http://www.fedorafaq.org/ basically.... Thanks for the prompt response but I had looked at already - the problem doesn't exist with FC4 as system-config-packages effectively takes care of this but the problem begins with pirut replacing it, which needs yum to be set up. Thanks again, A. Quote Link to comment Share on other sites More sharing options...
arctic Posted March 25, 2006 Report Share Posted March 25, 2006 Have you already read the manpages? man yum There you will find some nice options, like "--enablerepo"/"--disablerepo" and "localinstall". Quote Link to comment Share on other sites More sharing options...
arshadmomen Posted March 25, 2006 Author Report Share Posted March 25, 2006 (edited) Have you already read the manpages? man yum There you will find some nice options, like "--enablerepo"/"--disablerepo" and "localinstall". Thanks for the tip, but i must say it is very terse for me who has been pampered by urpmi. Let me be more specific. Say if you were to install emacs from one of the CDs. What command would you use? Should it be "yum --enablerepo=/media/disk install emacs" ? I tried that and it obviously fails. Please lend me a hand here. Thanks again, I wouldn't know how to do without this board! A. Edited March 25, 2006 by arshadmomen Quote Link to comment Share on other sites More sharing options...
arctic Posted March 25, 2006 Report Share Posted March 25, 2006 It should be something like yum --enablerepo=file:///media/disk install emacs I hope that it will work, but this should be the correct entry afaik. You can add the DVD/CD-repos to your /etc/yum.conf file. Add something like this: [base dvd] name=Fedora Base DVD baseurl=file:///media/disk/ enabled=1 Quote Link to comment Share on other sites More sharing options...
arshadmomen Posted March 25, 2006 Author Report Share Posted March 25, 2006 It should be something like yum --enablerepo=file:///media/disk install emacs I hope that it will work, but this should be the correct entry afaik. You can add the DVD/CD-repos to your /etc/yum.conf file. Add something like this: [base dvd] name=Fedora Base DVD baseurl=file:///media/disk/ enabled=1 I have the 5cd set so this method works for the 1st cd only ( as the other Cds do not have any repodata). I guess you don't have this problem with DVDs as everythings in one place. Any ideas? Thanks. A. Quote Link to comment Share on other sites More sharing options...
jlc Posted March 25, 2006 Report Share Posted March 25, 2006 pirut will have that funcionality later, there still working on it. pirut replaced system-config-package which did use cd/dvd's, but they haven't got that funcionallity in there yet. For now like artic said, create a local repo file $ su - # cd /etc/yum.repos.d/ # sed -i s/enabled=1/enabled=0/ *.repo (this will ensure all of your repositorys are set to 0 meaning they would look for them. # vi cd.repo cat cd.repo [local-cd] name=Fedora Core $releasever - $basearch - Local CD install baseurl=file:///media/disk enabled=1 gpgcheck=0 Now you can use pirut to install stuff (gui) or use yum Now I will install something I know I don't have with yum. # yum install zsh-html Loading "fastestmirror" plugin Loading "installonlyn" plugin Loading "changelog" plugin Setting up Install Process Setting up repositories local-cd [1/1] local-cd 100% |=========================| 1.3 kB 00:04 Loading mirror speeds from cached hostfile Reading repository metadata in from local files primary.xml.gz 100% |=========================| 746 kB 00:00 local-cd : ################################################## 2414/2414 Added 2414 new packages, deleted 0 old in 10.55 seconds Parsing package install arguments Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Downloading header for zsh-html to pack into transaction set. zsh-html-4.2.5-1.2.2.x86_ 100% |=========================| 16 kB 00:00 ---> Package zsh-html.x86_64 0:4.2.5-1.2.2 set to be updated --> Running transaction check Dependencies Resolved ============================================================================= Package Arch Version Repository Size ============================================================================= Installing: zsh-html x86_64 4.2.5-1.2.2 local-cd 373 k Transaction Summary ============================================================================= Install 1 Package(s) Update 0 Package(s) Remove 0 Package(s) Total download size: 373 k Is this ok [y/N]: Until they get pirut to have the feature, this will be your only method to easily install packages. Just a big not though, as you saw, you have none of your "internet" repositorys enabled so you will need to re-enable those when you have connectivity. # cd /etc/yum.repos.d #sed -i s/enabled=0/enabled=1/ fedora-core.repo fedora-extras.repo fedora-updates.repo It should be something like yum --enablerepo=file:///media/disk install emacs I hope that it will work, but this should be the correct entry afaik. You can add the DVD/CD-repos to your /etc/yum.conf file. Add something like this: [base dvd] name=Fedora Base DVD baseurl=file:///media/disk/ enabled=1 I have the 5cd set so this method works for the 1st cd only ( as the other Cds do not have any repodata). I guess you don't have this problem with DVDs as everythings in one place. Any ideas? Thanks. A. Ah, I missed this part with cd's, You could make a local repo's by cp everything over to a dir off the cd's and use createrepo to make the repodata file. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.