Cleaning Up

Once the package is installed, you can do some cleanup to get rid of all the temporary files created during the installation. Some makefiles include rules for deleting all the files that are created during a build, and you can use that option (usually make clean) to return the source directory to its original state.

[[email protected] kdirstat-2.2.0]# make clean

If you have retained the original source code tarball, it is okay to simply get rid of the entire directory from which you compiled the source code. In the case of KDirStat, you would get rid of /usr/local/src/kdirstat-2.2.0. Begin by going one directory level above the directory you want to remove. In this case, that would be /usr/local/src.

[[email protected] kdirstat-2.2.0]# cd /usr/local/src

Now use the rm command to remove the actual directory, like so: [[email protected] src]# rm -rf kdirstat-2.2.0

CAUTION fl

The rm command, especially with the -rf parameter, is very dangerous. It recursively removes an entire directory without stopping to verify any of the files. Run as the root user, this has the potential to really cause problems on your system. Be very careful and make sure you are erasing what you mean to erase. There is no "undelete" command.

Computer Hard Drive Data Recovery

Computer Hard Drive Data Recovery

Learn How To Recover Your Hard Drive Data After A Computer Failure.

Get My Free Ebook


Post a comment