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.
Is there a way of deinstalling a package that I have compiled myself?
I want to do a recompile and I am not sure if everything gets overriden when I just make a new make and make install...
Do I have to delete all files befor manually?
A little. One option is to keep the source directories around (after you make install you can run "make clean" in the source directory to get rid of the objects and executables to save a little space) but there are more options. The best in my opinion is to make an rpm of your build so you can just remove the rpm if you want to install/upgrade. Checkinstall will make an rpm for you ( Check/read the docs, I have not used this on an rpm distro) of the build that you can install. I'm sure there are other programs out there that can do the same ( maybe better).
If you have everything that a package needs to compile then it doesn't matter what distro you try to compile the package on, it should just compile. As for uninstalling, I usually don't uninstall coz sometimes you can break things, but it's just my
The reason for the distro question was some are easier than others and some have no package management at all. rpm, debs, and tgz's are all pretty easy to keep up with and manage/create/upgrade
etc... But if you were runnin say linux from scratch then its a little different.
thanx for the quick answers...
so, how I understand this, I can just make a make clean, and all files I had previoulsy installed get deleted?
And if not, it doesn't make any difference, because a new make && make install will simply override the files...
"make clean" deletes the objects files (the .o files) and executables from the source directory. So if you wanted to keep the source around (to uninstall it (see below) ) make clean would free up a little disk space.
after you do "make install" and install to the file system, if you go back to the source directory and do "make uninstall" it will uninstall whatever was installed.
So basically, if you keep the source directory around, "make uninstall" is what you want to use.
You can generally overwrite installs and be fine (but its not guaranteed). This is the standard procedure for some packages like glibc.
you might want to check checkinstall and see if it will work for you. It's pretty painless and makes it easy for upgrades/removals (I've used it on Slackware and Debian but not on an rpm distro). to use it just do your normal:
I agree with __J checkinstall would be a good tool to use to create your own packages from source. I have never used it on an rpm based distro coz I can make my own rpms but on slack, it works like a wonder. If you have a lot of hard disk space it doesn't hurt to keep the sources around.