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.
I needed to upgrade some packages in Ubuntu to install a program from source. No prob, downloaded the newest versions, installed them and...one of the dependencies still linked to the old version, though the install for the updated version was a success. Sure I could change the prefix or what not, but if I could just uninstall the old version, all would be great, right? I prefer source installs because I suck with apt-get, plus, Im new and like the practice of the raw, DIY problem-solving.
Correct me if Im wrong...I have program-1.0, download source for program-2.0, install it, and now have program-1.0, AND program-2.0?
I read somewhere in this forum to do 'make uninstall' but thats only good IF its something I installed from source, but I was upgrading stuff that came with the Ubuntu install.
I hope this is enough to explain my problem. I can't tell you much more because some genius(ME) uninstalled a package from adept that totally removed everything, and I had to redo the whole damn system. However, I want to figure this out.
ha, that makes pretty good sense. now that i see it, im not quite sure why i didnt get that...am i right about the old and new versions being installed next to each other? or does the new source install write over the old? Thanks again.
You'll be saving yourself a LOT of trouble if you can learn how to use apt-get or (my preference) synaptic. Using these programs will remove obsolete versions of programs, so you don't get the confusion of having more than one version of a program installed. If you want to do a lot of compiling source from a tweaking perspective, I suggest that Ubuntu is not the ideal distro. Something like Slackware, Gentoo or LFS would probably suit you better.
In answer to your question, I would expect that a source-install will overwrite the old version, except in the case where the old version had different/extra files. This may often be the case for some libraries but is probably less common for end user programs. A lot of libraries tend to create symlinks to the last installed version, to avoid problems with other packages linking to outdated versions. However, a package manager should remove the old version, and then install the new version. Since every package knows which files belong to it, files don't get left-over.
Sure You can have packages in different versions
f.e. on my machine i have gcc in versions 4.0 and 4.1
Some packages just need to be kept for compability with older software
In case of user software like aMule or any other user program You dont have to have older version.
synaptic is just a graphical front end to apt-get. APT enlists dpkg to remove any conflicting packages and subsequently install the new packages from the DEB files it downloaded to the cache directory.