Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
(1) Uninstalling software in Linux is a bit complex. If you use a package-based distro like a Debian-derivative or a Red Hat-derivative, then all you need is the appropriate removal command; i.e. on Red Hat, if you installed gaim and want to uninstall it:
rpm -e gaim
as root will do the trick. If you aren't using a package-based distro, then you'll need to find out where the program is, as well as where all of its associated files are (data, libs, manpages, etc). Then you can just delete them.
(2) A core file is generated by programs under Linux whenver they do something bad. Some of the reasons include: accessing memory that isn't theirs (SIGSEGV - Segmentation fault); issuing an illegal instruction (SIGILL - Illegal instruction - rare); a system bus error when the program tries to execute (SIGBUS - Bus error); and issuing an illegal floating-point instruction (SIGFPE - Illegal floating-point instruction).
One thing to remember about this is that programs with a setuid or setgid bit (i.e. the chmod u+s or the chmod g+s command was run on them) will not dump core because it could compromise security. Also, on kernels before 2.6, certain types of programs that use threads or do other advanced things might not dump core either, depending on the kernel.
You should NEVER need to reinstall the entire Linux distro to remove a single program, unless you remove a critical program that is part of the outer core of the system.
Not all the time. Some program maintainers or authors don't add uninstall targets to their Makefiles. Larger, multi-program software packages might, but you shouldn't count on it. If you really need to be able to easily uninstall a large software package with lots of data files and such, IMO you should just build an RPM or fetch an RPM from somewhere.
well, if you deleted the sources, just get them again, and do ./configure, and then make uninstall (sometimes you may have to go through make and make install and then do make uninstall)
if there is no make uninstall available, do ./configure, make, and then convert it to a package; this way, you can see where all the files would go (for example, makepkg in slack will create a .tgz file that when opened will show /usr, /bin and such with the files inside those dirs)
if you kno where the files are to go and you have already installed the program, just follow the directories in the package and use rm (remove command) manually deleting each individual file
*also, another thought is that if you create a package, just install the package and then uninstall the package using a basic uninstall package command for your distro