couple of newbie questions
I migrated from Windows about 6 months ago to Linux. I started with Kubuntu and eventually landed on Fedora and so far, I've liked Fedora the best in spite of disliking yum.
So my question is more or less and Linux question.. Now, Windows has a registery system that can (or will) get really cluttered if you don't take care of it and clean it from time to time. Also, Windows has a really inefficient way to processing programs, especially during start up that can slow the os down. For example, if you deleted or uninstalled a program incorrecly, stupid Windows will sit there, wasting time and energy trying to find it even though its not there. 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? 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 :confused: Thanks guys. |
Quote:
Code:
make uninstall In brief when you install from source you have to simply follow the basic steps: Code:
./configure --prefix=/path/to/installation Code:
/opt/netcdf-3.6.2 Code:
./configure --prefix=/opt/netcdf-3.6.2 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. Quote:
|
If you install with a package manager, use the package manager to uninstall. If you use the rpm command then use the -e (erase) option to remove the package. If you installed from source, use "./make uninstall" in the source directory.
For packages you install from source you might want to use "./configure --prefix=/usr/local" if it isn't the defaullt. The /usr/local directory won't be touched during an upgrade. It would also make it easier to determine which packages you installed from source. If you are compiling a common package however, then it may be better to use "/" or "/usr" depending on the package. Otherwise you may end up with two versions. The versions installed already from an rpm package, and the one you compiled. |
In the event that make uninstall doesn't work --- and there will be times when it doesn't work --- simply deleting the binaries and libraries is fine as long as no other programs depend on them. You can find out where they are installed using the whereis command.
If you want to delete the configuration files, you'll have to find out for yourself where the global configurations are, if there are global configurations, and look in ~ for user configurations. |
It is also a good habit to save the output of make install, for example by
Code:
make install 2>&1 | tee install.log |
i dont know which distro you use, but for *server* type services in fedora you type "ntsysv". for gui stuff like your player, maybe there's something in gnome or kde for that, i dont know.
|
All times are GMT -5. The time now is 12:11 AM. |