apt-get in debian - updating one package only

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
User avatar
raghavan20
DevNet Resident
Posts: 1451
Joined: Sat Jun 11, 2005 6:57 am
Location: London, UK
Contact:

apt-get in debian - updating one package only

Post by raghavan20 »

i am wondering how is it possible to update one package only with apt-get in debian. from the man pages, i see it updates all packages at once. any suggestions?
User avatar
Jenk
DevNet Master
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London

Post by Jenk »

Do you mean update with no dependencies?

It's not a good idea to update without updating dependencies.

Anyway, instead of apt-get, you can down the package manually and use the dpkg command to install locally, which has a --ignore-depends flag.
User avatar
raghavan20
DevNet Resident
Posts: 1451
Joined: Sat Jun 11, 2005 6:57 am
Location: London, UK
Contact:

Post by raghavan20 »

if a package lets us say vim is already installed and has an older version, then how do i update this package alone to the recent version?
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

If you don't want to update everything, just one package, then maybe use this format to install the latest version number:

Code: Select all

apt-get install package=version
(#10850)
User avatar
raghavan20
DevNet Resident
Posts: 1451
Joined: Sat Jun 11, 2005 6:57 am
Location: London, UK
Contact:

Post by raghavan20 »

okay i think that will work. thanks a lot.
Post Reply