upgrade third party .deb package

Asked by Daniel

How I suppose to upgrade a package from a third party that was installed using dpkg:

1. Should I uninstall the old one and install the new in a fresh machine?
2. Should I just install the new one using dpkg and it will smartly change the required old files for the new ones keeping my configuration intact?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Randy LeJeune
Solved:
Last query:
Last reply:
Revision history for this message
Randy LeJeune (lejeunerandy-fastmail) said :
#1

dpkg -i {.deb package} will upgrade the package if it is installed.

Revision history for this message
Daniel (dmendizabal) said :
#2

The upgrading process delete the old files copying the new ones? Or it will keep the old files in my computer even though they are not useful anymore?.
My question comes because every time that I upgrade my gutsy with the Update Manager, it keeps increasing the amount of hard disk. So I can assume that new files are being installed and the old ones (unnecessary I suppose) are still there.

Actually, it was one of the negative sides of Windows, when you start with a brand new computer working fast and with 15G of disk being used by your applications. But after a year later without realizing you have 22G of software and a computer that works like charcoal engine.

Revision history for this message
Best Randy LeJeune (lejeunerandy-fastmail) said :
#3

To remove files that are no longer needed issue this command line:

sudo apt-get autoremove

This should uninstall the applications that are unnecesary after an upgrade.

Revision history for this message
Daniel (dmendizabal) said :
#4

Thanks Randy LeJeune, that solved my question.