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 install
find /* > filelist.after
diff filelist.before filelist.after > remove.list
for i in $(grep ">" remove.list | awk '{ print $2 }')
/bin/rm -fi $i

Method 3:

apt-get remove package

rpm -e package
yum remove package


Leave a Reply

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