yum question

T.C. Hollingsworth tchollingsworth at gmail.com
Fri Jan 3 09:01:11 UTC 2014


On Thu, Jan 2, 2014 at 10:41 AM, bruce <badouglas at gmail.com> wrote:
> IE, I've got a drive from a separate/older system that I'd like to
> mount/examine to see what packages where installed with yum on that
> drive...
>
> the "installroot" switch appears to be used to chroot into a separate
> location for the yum.repos.d" - but I could be wrong..

You can use rpm directly for simplicity:

% rpm -q fedora-release
fedora-release-20-1.noarch
% sudo mount /dev/mapper/fedora-f19-root /mnt/f19
% rpm --root=/mnt/f19 -q fedora-release
fedora-release-19-4.noarch

`yum --installroot` should work similarly.

-T.C.


More information about the users mailing list