Top.Mail.Ru

How to Update Package Lists on Linux

How to Update Package Lists on Linux

Updating package lists is a mandatory step before installing or updating software on Linux. This synchronizes your local database with up-to-date data from the repositories to ensure your system only has reliable sources of software packages. 

In the instructions we will walk you through step by step how to update the lists.

Step 1: Update the package list

To update the local package list, run the command:

sudo apt update

The command accesses the repositories specified in the /etc/apt/sources.list file and downloads the latest information about available packages and their versions.

Step 2: Update installed packages

After updating the list, we recommend updating the installed packages to the latest versions:

sudo apt upgrade

The installation of available updates for all packages will begin, without removing old packages.

Step 3: Full system update (optional)

If you need to perform a deeper update, which may include removing outdated packages, use:

sudo apt full-upgrade

The team will perform more updates, allowing changes to legacy packages.

Step 4: Check for available updates

To see a list of packages for which updates are available, use:

apt list --upgradable

Step 5: Clean up unnecessary packages

After upgrading your system, we recommend removing packages that you no longer need. To do this, use the command: 

sudo apt autoremove

Important: 

Make sure the file /etc/apt/sources.list contains up-to-date and trusted package sources. We also recommend that you back up your system before performing major updates.

CONTENT:

Similar

All news

Похожее

Все новости

Adaxa Suite: подробный обзор ERP-системы корпоративного класса

Adaxa Suite — комплексная ERP-платформа для компаний, которым уже тесно в рамках простых учётных систем, но которые при этом не готовы идти в сторону дорогих корпоративных решений уровня SAP или Oracle. Изначально продукт создавался для среднего бизнеса, которому нужна большой набор функций, сквозная автоматизация процессов и надёжная архитектура без чрезмерной стоимости владения. Архитектура и техническая […]

Как заказать дополнительные IP-адреса на UFO.Hosting: пошаговая инструкция

По мере роста проекта одного IP-адреса может стать недостаточно. Это типичная ситуация для компаний, которые масштабируют инфраструктуру, запускают новые сервисы или разделяют внутренние процессы. В UFO.Hosting подключение дополнительных IP-адресов выполняется через биллинговую панель и занимает всего несколько минут. Важно: возможность для заказа дополнительных IP-адресов доступна для тарифов VPS начиная с Haedus. Зачем нужны дополнительные IP-адреса […]