Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-09-2006, 01:57 AM   #1
Registered: Nov 2003
Distribution: Redhat linux 9, Fedra Core 1, Gentoo, Debian (woody), Mandrake 9.2
Posts: 75

Rep: Reputation: 15
Question 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 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!
Old 11-10-2006, 12:27 AM   #2
Penguin of Wonder
Senior Member
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Rep: Reputation: 45
Is this what you need?
# apt-get remove unwanted_program
Old 11-10-2006, 02:05 AM   #3
Registered: Nov 2003
Distribution: Redhat linux 9, Fedra Core 1, Gentoo, Debian (woody), Mandrake 9.2
Posts: 75

Original Poster
Rep: Reputation: 15
ha, that makes pretty good sense. now that i see it, im not quite sure why i didnt get 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.
Old 11-10-2006, 10:58 AM   #4
Penguin of Wonder
Senior Member
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Rep: Reputation: 45
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.
Old 11-10-2006, 11:09 AM   #5
Registered: Aug 2003
Location: UK
Distribution: (X)Ubuntu 10.04/10.10, Debian 5, CentOS 5
Posts: 900

Rep: Reputation: 32
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.
Old 11-10-2006, 11:15 AM   #6
Registered: Jul 2004
Location: Poland, Bydgoszcz
Distribution: KUbuntu 5.10, Slack 10.2
Posts: 40

Rep: Reputation: 15
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.
Old 11-10-2006, 11:27 AM   #7
Registered: Oct 2004
Location: France, Provence
Distribution: Debian
Posts: 848

Rep: Reputation: 30
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
apt-get wants to remove need packages fastTalker Linux - Software 1 02-15-2006 08:04 PM
remove packages acrors Fedora 3 09-25-2004 08:08 AM
how to remove packages Longinus Linux - Newbie 6 04-25-2004 07:53 PM
Mandrake Update/Install Packages/Remove Packages wslyhbb Mandriva 2 03-15-2004 10:43 AM
Cannot Remove Packages!! sbb Linux - Newbie 1 08-22-2003 12:12 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:52 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration