Exclusive Content:

How can I quickly update software on Ubuntu with this command chain?

One of the reasons many people use Linux over Windows is for the ease of installing software updates. Not only are they easy, they are also very fast, for example, a clean Ubuntu install can be updated in about 20 minutes. You can also see exactly what happened during the update, no vague messages indicating something went wrong. Despite these advantages, snap package formats like Snap make things a little more complicated, according to neowin.net/.

Canonical has configured Ubuntu to download and install security updates in the background. Unfortunately, “other updates”, such as browser updates, are only mentioned by users once a week, but they are not installed automatically, the user has to do it.

Besides the “other software” issue, you also have Snaps. They seemed to be updating themselves until a few months ago, but recently I’ve been getting notifications that updates are ready to be applied; that means more work for me!

Some of you may know about the teams. appropriate update And convenient upgrade They are great for updating your deb packages, but not for Snap packages for those you need to use. fast refresh. If you use these commands you will be interrupted to ask if you really want to apply the update.

Given that most updates are pretty stable, it’s nice to be able to install all the Deb and Snap packages at once without being asked to confirm the update and without having to run separate commands for Debs and Snaps. To update them all at once, the chain of command is as follows:

sudo apt update && sudo apt upgrade -y && sudo snap refresh

When you type or copy this into a terminal window you will be prompted for a password and then it will check for updates and apply them without confirmation, as well as check for new snapshots and apply any available updates. If you want more control over the update process, use the following chain of commands:

sudo apt update && sudo apt upgrade && sudo snap refresh

The above command skips the “-y” part. This means that you will be shown the updates to be installed and asked to confirm them to make sure you are happy. This is useful if you know of problematic packages that you do not want to accidentally install on your system.

Since the update chain is one that you’ll probably want to run several times over the course of a few weeks, it’s useful to know that you can tap the up arrow in the terminal to cycle through previously used commands. return to the update chain above and tap Enter to get a description of the process.

Flatpaks are not supported by Ubuntu out of the box, but if you use them, you can adapt the command chain from the previous version like this:

sudo apt update && sudo apt upgrade -y && sudo snap refresh && sudo flatpak update

This should also apply any available Flatpak updates, if any. These commands should work on any system that uses apt. you can set it to skip && sudo fast refresh, If you are not using Snaps, for example if you are using Linux Mint.

Source: Port Altele



Don't miss

US signs agreement with Ecuador to send military forces to fight drug trafficking – congressman

The US government signed a secret agreement with Ecuador on sending land and naval military forces to the country the purpose of which will...


Please enter your comment!
Please enter your name here