Sunday, March 10, 2013

Automatic removal of packages with dependencies

Good stuff for automation, if you want to remove packages on remote system with all it's dependencies, without interaction.

On RHEL:

yum remove --disablerepo=* -y 

for eg: yum remove firefox --disablerepo=* -y

On Solaris:

yes | pkgrm

for eg: yes | pkgrm SUNWjunk

On AIX:


installp -u -g

for eg: installp -u -g gskta





Labels: , , ,