• Home
  • Ubuntu 18.04
    • Whats New?
    • Upgrade Ubuntu
    • Install Java
    • Install Node.js
    • Install Docker
    • Install Git
    • Install LAMP Stack
  • Tutorials
    • AWS
    • Shell Scripting
    • Docker
    • Git
    • MongoDB
  • Funny Tools
  • FeedBack
  • Submit Article
  • About Us
TecAdmin
Menu
  • Home
  • Ubuntu 18.04
    • Whats New?
    • Upgrade Ubuntu
    • Install Java
    • Install Node.js
    • Install Docker
    • Install Git
    • Install LAMP Stack
  • Tutorials
    • AWS
    • Shell Scripting
    • Docker
    • Git
    • MongoDB
  • Funny Tools
  • FeedBack
  • Submit Article
  • About Us

Upgrading Ubuntu Packages via Command Line

Written by Rahul, Updated on September 29, 2020

It is recommended for all the Linux system users to keep packages up to date. All the Linux distribution’s provides security and packages upgrades time to time. You must keep the Ubuntu packages updated.

This tutorial will help you to update latest packages on a Ubuntu system. You can also apply only security updates silently via command line.

Update Ubuntu Packages

Fetch the update for all your repositories for all your apps to all the latest updates lists.

sudo apt update 

Then run the upgrade command to upgrade all the packages to latest available versions.

sudo apt upgrade 

Now, run the dist-upgrade which intelligently handles changing dependencies with new versions of packages. It also removes obsolete packages form your system.

sudo apt dist-upgrade 

Apply Security Updates Only

You may don’t like to update all the packages on your Ubuntu system. But we still recommend you to apply security updates on your systems. This upgrades are highly recommended for the production system to keep them secure.

Use the unattended upgrade to silently install updates without user interaction on your Ubuntu system.

sudo apt install unattended-upgrades 

But, if you want to run an interactive installation or upgrade use (-d) display parameter.

sudo apt install unattended-upgrades -d 

Share it!
Share on Facebook
Share on Twitter
Share on LinkedIn
Share on Reddit
Share on Tumblr
Share on Whatsapp
Rahul
Rahul
Connect on Facebook Connect on Twitter

I, Rahul Kumar am the founder and chief editor of TecAdmin.net. I am a Red Hat Certified Engineer (RHCE) and working as an IT professional since 2009..

Leave a Reply Cancel reply

Popular Posts

  • How to Install Python 3.9 on CentOS/RHEL 7 & Fedora 32/31 0
  • How To Install VNC Server on Ubuntu 20.04 1
  • How To Install NVM on macOS with Homebrew 0
  • (Solved) apt-add-repository command not found – Ubuntu & Debian 0
  • How to Install .NET Core on Debian 10 0
© 2013-2020 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy