Originally Posted by bdaedalus359
Is there a way to safely "uninstall" programs with Linux? For example, if I install a program by compiling the source code, and I don't want it anymore, is it safe for me to just delete the directory and never think twice about it?
When you install from source try to keep the installation source directory. You eventually can run
later to completely remove the software from your system. It is not a matter of just delete a directory, since the files are installed in different locations, depending on the PREFIX you have chosen during the configure step (or the default one) and on the type of the installed file (binaries, libraries, man pages and so on usually are installed in different directories). Also, don't run make clean or make distclean after the installation, otherwise all the configure options and the install logs are lost.
In brief when you install from source you have to simply follow the basic steps:
then leave the source directory as it is and later you can run make with the uninstall target. If you want to test a software without spreading the files over the systems, you can install them in the source directory itself. For example, suppose you want to install NetCDF libraries from source and untar the source code in /opt. You will have a source directory called
inside the directory you will run
in this case all the binaries, libraries, man pages etc. will be installed under /opt/netcdf-3.6.2/bin, /opt/netcdf-3.6.2/lib, /opt/netcdf-3.6.2/man respectively. In this case you can safely remove the entire directory and have the NetCDF libraries uninstalled.
On the other hand the default locations will be /usr/local/bin, /usr/local/lib, /usr/local/man and so on. In this case the make uninstall command is your friend.
And on a side note, how to I control, either add or remove programs that start up when the OS boots? I'd like to have Amarok start up when I boot but I dunno how
It depends on the Desktop Manager you're using. In GNOME go to System --> Preferences --> Personal --> Sessions and add programs you want to run at startup.