Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using Ubuntu12.04 and I installed lots of pkg.

I want to update only one specific pkg.

I tried using

 $apt-get update pkgname
 E: The update command takes no arguments

so then I tried

$apt-get update

all pkg updated successfully.

Is there any another command to update only one specific pkg?

share|improve this question
try apt-get install pkgname. – user1146332 Sep 11 '12 at 12:57
up vote 3 down vote accepted

apt-get update does not update a package, it updates the package database. And like user1146332 said using install the package automatically updates it too as it fetches the lates version of it.

PS: You have to do an update first to assure you know what the latest versions of the packages actually are.

share|improve this answer
It only fetches the latest version from the configured repositories and only if not told otherwise via pinning. – scai Sep 11 '12 at 13:30
I doubt it's the case here, I guess it's the default apt.conf – vitiv Sep 11 '12 at 13:42

vitiv said it correct, either you

apt-get install package name

to update it to newest version, or you could try

apt-get upgrade package name

to get the newest version of concerned package

share|improve this answer
Next time use shift and punctuation. – peterh Mar 7 '15 at 11:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.