Will it be possible in f8? I'm just struggling with this in f7 and I found documents to have this manually for fc5 and fc6 but it seems that trying to translate to f7 I continue to receive the message:
Impossible to retrieve information about software
and pirut closes.
What I did after installing from f7 i386 dvd:
cd /etc/yum.repos.d changed these in fedora.repo and fedora-updates.repo a) commented mirrorlist line b) inserted baseurl=file:////media/disk c) mounted f7 dvd under /media/disk
yum clean all
Anything else? I think it could be of some help to have a possibly graphical way to configure this for f8 so that just in case one could add/remove/update packages offline.
I'm setting up a pc for a friend of mine and unfortunately it has not a network card... tomorrow I'm going to buy one ;-(
Gianluca
Another approach with a little improvement but anyway pirut/yum error: - set enabled=0 in fedora.repo and fedora-updates.repo - mount f7 dvd under /media/disk - manually install createrepo rpm with "rpm -i" - cd /media - createrepo . this creates a repodata directory tree under /media - create fedora-DVD.repo file under /etc/yum.repos.d with this in it: [fedora-DVD] baseurl=file:///media/disk enabled=1
Now for example the command yum search mysql -libs
gives a list of packages both installed and from the new configured fedora-DVD repository. But pirut fails with a traceback for example if I select amarok I get dependencies added, than I select continue and then I get unhandled exception: " Component: Software Manager Summary: TB21f8f94d packages.py:485:getDiscNum:ValueError: invalid literal for int() with base 10: ''
Traceback (most recent call last): File "/usr/sbin/pirut", line 337, in _apply self.applyChanges(self.mainwin) File "/usr/lib/python2.5/site-packages/pirut/__init__.py", line 722, in applyChanges dlpkgs = self.downloadPackages(mainwin) File "/usr/lib/python2.5/site-packages/pirut/__init__.py", line 417, in downloadPackages probs = self.downloadPkgs(dlpkgs) File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 798, in downloadPkgs remote_pkgs.sort(mediasort) File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 747, in mediasort a = a.getDiscNum() File "/usr/lib/python2.5/site-packages/yum/packages.py", line 485, in getDiscNum return int(fragid) ValueError: invalid literal for int() with base 10: ''
Local variables in innermost frame: self: htdig - 3:3.2.0b6-11.fc7.i386 netloc: fragid: path: //1180276843.561677 query: scheme: media "
also with yum I get the same ValueError: invalid literal for int() with base 10: ''
yum install amarok goes through all dependency check but after confirmation of installation I get Total download size: 76 M Is this ok [y/N]: y Downloading Packages: Traceback (most recent call last): File "/usr/bin/yum", line 29, in <module> yummain.main(sys.argv[1:]) File "/usr/share/yum-cli/yummain.py", line 172, in main base.doTransaction() File "/usr/share/yum-cli/cli.py", line 302, in doTransaction problems = self.downloadPkgs(downloadpkgs) File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 798, in downloadPkgs remote_pkgs.sort(mediasort) File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 747, in mediasort a = a.getDiscNum() File "/usr/lib/python2.5/site-packages/yum/packages.py", line 485, in getDiscNum return int(fragid) ValueError: invalid literal for int() with base 10: ''
Any hints? I'm going to install f8 t2 on a vm and see if it is easier to do what I want...
Thanks for your help Gianluca
Sorry for owning this whole thread... it seems that with my latest method (the createrepo one) after manually updating yum and yum-updatesd to the latest versions then all goes well with both yum and pirut. So it was a yum bug apparently. It remains the desire to have a first-linux-user more easier approach, if possible.
Thanks