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

Re: Dependency aware package removal.




How about writing a script using "rpm -q --whatrequires" to list all the dependent packages, and then build a full list of packages to pass on to "rpm -e"?


Awais Riaz wrote:

But what it can't do (and what I'm after) is remove
all the packages depending on that package (and so
on...). The same applies to package groups. Without
this functionality package removal can be quite a
tedious job.

I'm thinking of using yum with the local rpmdb to do
this. AFAIK, using yum with the local rpmdb and
up2date both should cause no problems. This way I can use yum
to install and remove packages and dependencies and
up2date to download the latest errata and updates.



Cheers,

Awais


--- Joshua Baker-LePain <jlb17 duke edu> wrote:



On Fri, 29 Jul 2005 at 3:24am, Awais Riaz wrote



I'm new to RHEL4 and have a question that has been
bothering me.

Is there a proper 'Redhat way' of removing


packages in


a dependency aware manner on systems without X


(and


hence no system-config-packages)? Coming from a
background using apt and yum, I find it strange


that


up2date doesn't provide this functionality. I've


been


taking this functionality for granted for years


with


other package management systems and am suprised


not


to find an out-of-the-box, all-in-one, fully
functional package management solution in RHEL4.


Am I


missing something?

Erm, 'rpm -e' will refuse to remove a package if
others depend on it.

--
Joshua Baker-LePain
Department of Biomedical Engineering
Duke University

--
nahant-list mailing list
nahant-list redhat com
http://www.redhat.com/mailman/listinfo/nahant-list







____________________________________________________
Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs



-- nahant-list mailing list nahant-list redhat com http://www.redhat.com/mailman/listinfo/nahant-list






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