Linux - Newbie This 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! |
Notices |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
11-09-2006, 12:57 AM
|
#1
|
Member
Registered: Nov 2003
Distribution: Redhat linux 9, Fedra Core 1, Gentoo, Debian (woody), Mandrake 9.2
Posts: 75
Rep:
|
upgrade packages, remove old?
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.
Thanks for the help!
|
|
|
11-09-2006, 11:27 PM
|
#2
|
Senior Member
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249
Rep:
|
Is this what you need?
Code:
# apt-get remove unwanted_program
|
|
|
11-10-2006, 01:05 AM
|
#3
|
Member
Registered: Nov 2003
Distribution: Redhat linux 9, Fedra Core 1, Gentoo, Debian (woody), Mandrake 9.2
Posts: 75
Original Poster
Rep:
|
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.
|
|
|
11-10-2006, 09:58 AM
|
#4
|
Senior Member
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249
Rep:
|
I can't honestly say I know the answer the that. That should be a no brainer for a lot of the people on this forum though. Sorry I couldn't help more.
|
|
|
11-10-2006, 10:09 AM
|
#5
|
Member
Registered: Aug 2003
Location: UK
Distribution: (X)Ubuntu 10.04/10.10, Debian 5, CentOS 5
Posts: 900
Rep:
|
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.
|
|
|
11-10-2006, 10:15 AM
|
#6
|
Member
Registered: Jul 2004
Location: Poland, Bydgoszcz
Distribution: KUbuntu 5.10, Slack 10.2
Posts: 40
Rep:
|
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.
|
|
|
11-10-2006, 10:27 AM
|
#7
|
Member
Registered: Oct 2004
Location: France, Provence
Distribution: Debian
Posts: 848
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 07:43 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|