yum messed up after changing '--installroot=[path]' - Setup

This is a discussion on yum messed up after changing '--installroot=[path]' - Setup ; I was trying to get yum to install a package to a specific directory (so it would reside in a public html folder) and in the process killed yum. I'm running Fedora Core 5. 1. i need to get yum ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: yum messed up after changing '--installroot=[path]'

  1. yum messed up after changing '--installroot=[path]'

    I was trying to get yum to install a package to a specific directory
    (so it would reside in a public html folder) and in the process killed
    yum. I'm running Fedora Core 5.

    1. i need to get yum working again
    2. i'd still like to figure out how to get yum to install packages to
    specific directories, or some method of achieving the same thing.

    here's the log of what happens when i run yum at the moment....

    [root@vmware tmp]# yum update
    Loading "installonlyn" plugin
    Setting up Update Process
    Setting up repositories
    core
    [1/3]
    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 97, in main
    result, resultmsgs = do()
    File "/usr/share/yum-cli/cli.py", line 481, in doCommands
    return self.updatePkgs()
    File "/usr/share/yum-cli/cli.py", line 957, in updatePkgs
    self.doRepoSetup()
    File "/usr/share/yum-cli/cli.py", line 78, in doRepoSetup
    yum.YumBase.doRepoSetup(self, thisrepo=thisrepo)
    File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 248, in
    doRepoSetup
    repo.baseurlSetup()
    File "/usr/lib/python2.4/site-packages/yum/repos.py", line 535, in
    baseurlSetup
    mirrorurls = getMirrorList(self.mirrorlist)
    File "/usr/lib/python2.4/site-packages/yum/repos.py", line 838, in
    getMirrorList
    fo = urlresolver.urlopen(url)
    File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line
    583, in urlopen
    return default_grabber.urlopen(url, **kwargs)
    File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line
    741, in urlopen
    return self._retry(opts, retryfunc, url)
    File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line
    702, in _retry
    r = apply(func, (opts,) + args, {})
    File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line
    740, in retryfunc
    return URLGrabberFileObject(url, filename=None, opts=opts)
    File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line
    893, in __init__
    self._do_open()
    File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line
    960, in _do_open
    fo, hdr = self._make_request(req, opener)
    File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line
    1059, in _make_request
    fo = opener.open(req)
    File "/usr/lib/python2.4/urllib2.py", line 358, in open
    response = self._open(req, data)
    File "/usr/lib/python2.4/urllib2.py", line 376, in _open
    '_open', req)
    File "/usr/lib/python2.4/urllib2.py", line 337, in _call_chain
    result = func(*args)
    File "/usr/lib/python2.4/urllib2.py", line 573, in
    lambda r, proxy=url, type=type, meth=self.proxy_open: \
    File "/usr/lib/python2.4/urllib2.py", line 580, in proxy_open
    if '@' in host:
    TypeError: iterable argument required


  2. Re: yum messed up after changing '--installroot=[path]'

    In comp.os.linux.setup Matt :
    > I was trying to get yum to install a package to a specific directory
    > (so it would reside in a public html folder) and in the process killed
    > yum. I'm running Fedora Core 5.


    > 1. i need to get yum working again


    You tried 'yum clean all' already?

    > 2. i'd still like to figure out how to get yum to install packages to
    > specific directories, or some method of achieving the same thing.


    A rpm package has to be relocatable to be installed to another
    location. I'd try installing via rpm "--relocate", see 'man rpm'
    for usage. Though this doesn't work for any package, simply using
    'rpm2cpio' + 'cpio' to get things where you want could be easier
    and unlikely to cause any further problems...

    Good luck

    --
    Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
    mail: echo zvpunry@urvzvat.qr | perl -pe 'y/a-z/n-za-m/'
    #bofh excuse 275: Bit rot

+ Reply to Thread