How to update all installed packages at once in Ubuntu


Most of the time, when doing a security audit on a Ubuntu server, or setting up the server before deploying a hosted application, the DevOps guy will like to make sure that all the packages installed on the system are up-to-date, if not we want to update all the packages to the latest supports ones.

There is a command for this using the apt package manager.

Example:
# apt update

Hit:1 http://ports.ubuntu.com/ubuntu-ports jammy InRelease
Hit:2 http://ports.ubuntu.com/ubuntu-ports jammy-updates InRelease
Hit:3 http://ports.ubuntu.com/ubuntu-ports jammy-backports InRelease
Hit:4 http://ports.ubuntu.com/ubuntu-ports jammy-security InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
update (apt-get(8))
           update is used to download package information from all configured sources. Other
           commands operate on this data to e.g. perform package upgrades or search in and
           display details about all packages available for installation.

Reference: https://manpages.ubuntu.com/manpages/lunar/en/man8/apt.8.html
update all installed packages at once in Ubuntu
-

Facing issues? Have Questions? Post them here! I am happy to answer!


Author Info:

Rakesh (He/Him) is a seasoned developer with over 10 years of experience in web and app development, and a deep knowledge of operating systems. Author of insightful How-To articles for Code2care.

Follow him on: X

You can also reach out to him via e-mail: rakesh@code2care.org

Copyright © Code2care 2023 | Privacy Policy | About Us | Contact Us | Sitemap