Problem with yum-utils 1.0.4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'm trying to use yum (or yum-utils, whichever works) to download
packages without installing them.
Using rhel5 (local repositories only), python-2.4.3, yum-3.0.5,
yum-utils-1.0.4.

yumdownloader works, but when I added --resolve it failed with this error:
# yumdownloader --resolve yum
Loading "installonlyn" plugin
Loading "priorities" plugin
dag                       100% |=========================|  951 B    00:00
local                     100% |=========================|  951 B    00:00
updates                   100% |=========================|  951 B    00:00
base                      100% |=========================| 1.1 kB    00:00
97 packages excluded due to repository priority protections
yum-3.0.5-1.fan.noarch.rp 100% |=========================|  13 kB    00:00
Traceback (most recent call last):
  File "/usr/bin/yumdownloader", line 191, in ?
    main()
  File "/usr/bin/yumdownloader", line 159, in main
    if not pkg in toDownload:
  File "packages.py", line 191, in __eq__
  File "transactioninfo.py", line 403, in __cmp__
AttributeError: 'NoneType' object has no attribute 'name'

yum-downloadonly works, but if I add --downloaddir it fails
# yum --downloadonly --downloaddir=. install yum
Loading "installonlyn" plugin
Loading "priorities" plugin
Loading "downloadonly" plugin
Loading "tsflags" plugin
Setting up Install Process
Setting up repositories
dag                       100% |=========================|  951 B    00:00
local                     100% |=========================|  951 B    00:00
updates                   100% |=========================|  951 B    00:00
base                      100% |=========================| 1.1 kB    00:00
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in ?
    yummain.main(sys.argv[1:])
  File "/usr/share/yum-cli/yummain.py", line 94, in main
    result, resultmsgs = base.doCommands()
  File "/usr/share/yum-cli/cli.py", line 381, in doCommands
    return self.yum_cli_commands[self.basecmd].doCommand(self,
self.basecmd, self.extcmds)
  File "/usr/share/yum-cli/yumcommands.py", line 134, in doCommand
    return base.installPkgs(extcmds)
  File "/usr/share/yum-cli/cli.py", line 539, in installPkgs
    self.doRepoSetup()
  File "/usr/share/yum-cli/cli.py", line 104, in doRepoSetup
    yum.YumBase.doRepoSetup(self, thisrepo=thisrepo)
  File "__init__.py", line 313, in doRepoSetup
  File "plugins.py", line 153, in run
  File "/usr/lib/yum-plugins/downloadonly.py", line 38, in
postreposetup_hook
    repo.set('pkgdir',opts.dldir)
AttributeError: 'YumRepository' object has no attribute 'set'

Using yum-tsflags prints this warning, but it still works.
/usr/lib/python2.4/site-packages/yum/config.py:445: DeprecationWarning:
setConfigOption() will go away in a future version of Yum.

Editing yum.conf to include tsflags=yes, and using repotrack, both works
without any warnings.

So my question is :
- Is this a known problem?
- What is the recommended way to download packages without installing
them? At this point, to download a package without dependency I need to
use yumdownloader, but if I need to download the package with all
dependency I have to use repotrack.

Regards,

Fajar
_______________________________________________
Yum mailing list
Yum@xxxxxxxxxxxxxxxxxxxx
https://lists.dulug.duke.edu/mailman/listinfo/yum

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux