Linux – Removing software from outside of repository

Sometimes you install software from outside of repository, sometimes you compile your package or install binary.

There are few methods for uninstalling that software when the time is right.

Method 1:

#inside directory you previously compile the package
make uninstall

Method 2:

This method is time consuming and also require you to do some steps BEFORE actually installing package. This method is best for removing software that you install just for test purpose.

find /* > filelist.before
make
make install
find /* > filelist.after
diff filelist.before filelist.after > remove.list
for i in $(grep ">" remove.list | awk '{ print $2 }')
do
/bin/rm -fi $i
done

Method 3:

#debian/ubuntu
apt-get remove package

#redhat/rhel/fedora/centos/suse
rpm -e package
#or
yum remove package

 

Leave a Reply

Your email address will not be published. Required fields are marked *

*