Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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
4  
try apt-get install pkgname. –  user1146332 Sep 11 '12 at 12:57
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.