Ticket #1 (closed enhancement: worksforme)

Opened 2 years ago

Last modified 1 year ago

Use yum to install to a temporary, yumless filesystem

Reported by: flyn Assigned to: skvidal
Priority: minor Milestone:
Component: yum Version:
Keywords: Cc:

Description

I am trying to use yum to install packages onto a CompactFlash? disk that will then be installed in a small computer. I want to mount the CF disk at /mnt and then use the --installroot to install packages onto the disk. What I have found is that the --installroot option also affects where yum expects its cache to be. This means that yum fails because /mnt/var/cache/yum does not exist:

Error: Cannot retrieve repository metadata (repomd.xml) for repository: updates-newkey. Please verify its path and try again

I don't want to actually install yum on the CF disk. I just want to use yum on the hosting computer to install packages on a temporarily mounted flash disk (i.e., /mnt is root, but real /var/cache/yum is used).

Could yum be modified to provide this feature?

I find that yumdownload behaves in a similar manner.

Change History

11/09/08 16:39:37 changed by flyn

The work around right now is to "cp -a /var/cache/yum /mnt/var/cache/yum" and do the same for /etc/yum*.

11/12/08 15:44:35 changed by skvidal

  • status changed from new to closed.
  • resolution set to worksforme.

You can set the cachedir to wherever you want.

look at 'cachedir' option in the yum.conf man page.

cachedir

Directory where yum should store its cache and db files. The default is ‘/var/cache/yum’.