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

Package updater + Dependency resolver



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

This is slightly off topic but I believe people on this list can
help.
Pease let me know if anyone belives this discussion belong elseware.

I'm looking for a tool, or more likely, a process (as elegant as
possible) that will look into a directory containing nothing but
RPM packages and
(1) download all of the latest versions of the packages
(2) Check and resolve (by downloading required packages)
dependancies

I have found parts and pieces out there that do most of this.  If
an all inclusive tool or process exists I haven't found it yet.

One method I'm playing with (pretty ugly) goes something like this:

(1) Utilize an "alternate" RPM DB as suggested by Brett Schwarz:

cd RPMS; mkdir /tmp/testdb; rpm --initdb --dbpath /tmp/testdb;
       -- rpm --test --dbpath /tmp/testdb -Uvh ./*.rpm

(2) Then force rpm to use the "alternate DB (as cleanly as
possible) so yum will work on what is in the alternate DB (which is
really the list of RPMs in my directory) instead of what is
actually installed on the host system:
echo "%_dbpath /tmp/testdb" >> ~/.rpmmacros

(3)  yum check-update | grep updates | grep -v "^Setting up Repo" >
proposed-updates.txt
Then do some perl/rpm foo on proposed-updates.txt to create a wget -
- -input-file.

(4) Get the updates with wget

(5) Repeat (1) etc...

I came across a post that mentioned a --download-only option that
existed in previous version of yum but is now missing in action...

Anyway,  if anyone has thoughts or pointers pleasse let me know.

Earl Sammons

-----BEGIN PGP SIGNATURE-----
Note: This signature can be verified at https://www.hushtools.com/verify
Version: Hush 2.4

wkYEARECAAYFAkHYgD8ACgkQzlcylg6d9Ct0twCggBWUODUHGu07Ax67Zr/Y7y89A6oA
oLmfZJH41TcrfUF9qxvLkIhbLT1X
=Wynu
-----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


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