Weird command structure to update a package
ubuntu at howorth.org.uk
ubuntu at howorth.org.uk
Thu Feb 3 20:52:37 UTC 2022
> Coming from CentOS world it was straight forward to update a package.
> yum update Package
> for example....
>
> Unless I have found bad information this is the seemingly not
> straightforward manor to update a package on Ubuntu...
>
> $ sudo apt-get update
> $ sudo apt-get --only-upgrade install Package
> $ sudo apt-get install Package
>
> It "seems" to me that its the job of the programmer to "hide"
> silliness that is the above.
> Seems like
> sudo apt-get update Package or that is not possible "sudo apt-get
> update-package Package"
> and behind the scenes hide anything else that needs done - is a
> possible solution.
>
> Just a new-comers observation.
>
> Jerry
You seem to have looked at old documentation. It isn't normal to just
upgrade a single package; the normal action is to upgrade all packages
that have updated versions available.
# // indicates a comment here
# apt update // fetch details of all available updates
# apt upgrade // apply all the updates
More information about the ubuntu-users
mailing list