[Yum-devel] update rpms that are not installed

esammons-lists at hush.com esammons-lists at hush.com
Tue Feb 1 03:19:42 UTC 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Finally got a chance to try it... but no luck...

# rpm -q yum
yum-2.1.13-1

# mkdir -p /tmp/foo
# rm -f /tmp/foo/*

# yum --installroot=/tmp/foo list available
Setting up Repos
Cannot find a valid baseurl for repo: base

Hmmm....  Is that what you ment?

One idea I had was to set up a temp rpm db (barrowed this part..)
'rpm --initdb --dbpath ${TMP_D}'

Populate the temp db witht the pool of RPMs that need updating...
'rpm --justdb --dbpath ${TMP_D} -i ${RPM_DIR}/*.rpm'

Make my default dbpath the temp db...
(since I'm calling yum and not rpm directly)
'echo "%_dbpath  ${TMP_D}" >> ~/.rpmmacro'

Then do
'yum check-update' | perl-foo > getfile
'for rpm in `cat getfile`; do wget http://blah/$rpm; done'

But thats just ugly!  Besides, the wheels fall off when I have for
example:

glibc-ver-i386 and glibc-ver-i686 in the same pool of RPMS.

Anyone have a better mouse trap?

Thanks!

Earl


On Mon, 31 Jan 2005 10:13:00 -0800 seth vidal
<skvidal at phy.duke.edu> wrote:
>On Mon, 2005-01-31 at 09:56 -0800, esammons-lists at hush.com wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> I'm hacking up a custom distro and I need a better way
>(preferably
>> with yum) to update a "pool" of RPM files to be used as the
>install
>> base.
>>
>> I can check deps on the pool with yum-arch -nd <rpm-dir> but
>cannot
>> seem tofigure a way to utilize yum to be sure all rpms are
>updated.
>>
>> I thought about populating a temp rpm database and yum-ing it
>but
>> that doesnt work when I have two of the same %name with
>different
>> %arch...
>>
>
>I'm not sure I understand - you want yum to spit out the list the
>newest
>packages from a repo?
>
>Try yum --installroot=/some/place/with/nothing/in/it list
>available
>
>with only your base repository in the config?
>
>then it will list out all the available pkgs which should just be
>the
>newest ones.
>
>-sv
>
>
>_______________________________________________
>Yum-devel mailing list
>Yum-devel at linux.duke.edu
>https://lists.dulug.duke.edu/mailman/listinfo/yum-devel
-----BEGIN PGP SIGNATURE-----
Note: This signature can be verified at https://www.hushtools.com/verify
Version: Hush 2.4

wkYEARECAAYFAkH+9eAACgkQUQS5+laMPKqQFQCgtaPlW9xGlBMqPBAG3O5/Jbn5mv8A
nAj6Xkcwvne+BXf1QrA4zYli5hf4
=h1b6
-----END PGP SIGNATURE-----




Concerned about your privacy? Follow this link to get
secure FREE email: http://www.hushmail.com/?l=2

Free, ultra-private instant messaging with Hush Messenger
http://www.hushmail.com/services-messenger?l=434

Promote security and make money with the Hushmail Affiliate Program: 
http://www.hushmail.com/about-affiliate?l=427



More information about the Yum-devel mailing list