Customize Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorized as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

No cookies to display.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

No cookies to display.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

No cookies to display.

Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.

No cookies to display.

Advertisement cookies are used to provide visitors with customized advertisements based on the pages you visited previously and to analyze the effectiveness of the ad campaigns.

No cookies to display.

How to update and upgrade Linux commands?

How to update and upgrade Linux commands?

What is update and upgrade in Linux?

The update command gives you an idea about the available updates, but it does not download or install the updates within your distro. On the other hand, the apt upgrade command downloads and installs available updates on your machine in one go.

To update and upgrade Linux packages, you can follow the steps below:

  1. Open your Linux terminal.
  2. Update the system package manager by typing the command:

sudo apt-get update

This command updates the package lists for upgrades and installs on your system.

  • Upgrade the installed packages by typing the command:

sudo apt-get upgrade

This command upgrades the installed packages to the latest version available in the repositories.

  • If you want to upgrade to a new release of the Linux distribution, you can use the command:

sudo apt-get dist-upgrade

This command upgrades the distribution to the latest release version available in the repositories.

  • If you want to remove unnecessary packages that are no longer needed, you can use the command:

sudo apt-get autoremove

This command removes the packages that were automatically installed as dependencies but are no longer needed by any installed packages.

  • If you want to clean up the local repository cache to free up disk space, you can use the command:

sudo apt-get clean

This command removes the local repository cache of downloaded packages that are no longer needed.

Leave a Reply

Your email address will not be published.