How To Install update-notifier-common on Ubuntu 20.04
Introduction
In this tutorial we learn how to install update-notifier-common on Ubuntu 20.04.
What is update-notifier-common
update-notifier-common is:
Apt setup files and reboot notification scripts shared between update-notifier and other packages, notably for server use cases. Task: server, ubuntu-desktop-minimal, ubuntu-desktop, cloud-image, xubuntu-desktop, lubuntu-desktop, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop
Package: update-notifier-common Status: install ok installed Priority: optional Section: gnome Installed-Size: 1154 Maintainer: Michael Vogt [email protected] Architecture: all Source: update-notifier Version: 3.192.30.5 Replaces: update-notifier (« 0.75.1) Depends: python3:any, python3-apt, python3-dbus, python3-debian, python3-debconf | debconf (« 1.5.64~), patch, update-manager-core (>= 1:17.04.2) Pre-Depends: dpkg (>= 1.15.7.2), apt (>= 1.1~) Recommends: libpam-modules (>= 1.0.1-9ubuntu3) Suggests: policykit-1 Conffiles: /etc/apt/apt.conf.d/10periodic 03ddb526e156071de0667748b6ac1d33 /etc/apt/apt.conf.d/15update-stamp b9de0ac9e2c9854b1bb213e362dc4e41 /etc/apt/apt.conf.d/20archive 9e28a07261e6ad5ede22d5286291ca23 /etc/apt/apt.conf.d/99update-notifier 8c8636b1123964162e9a1127f237ba7b /etc/cron.daily/update-notifier-common ac3a73308ace1070b9980c2bc56fb416 /etc/cron.weekly/update-notifier-common 0cfcd026510cd5005e6eb703ccde3d73 /etc/update-motd.d/90-updates-available eaddabe4cbd443e9da6b14452b0a8fe5 /etc/update-motd.d/95-hwe-eol 070a28086b1a1fc7548ac3cfe493d23f /etc/update-motd.d/98-fsck-at-reboot 16003ee8c8c80a565a98a7696cee04c0 /etc/update-motd.d/98-reboot-required 1c4d534d0abd44d566899e47c4f22786 Description-en: Files shared between update-notifier and other packages Apt setup files and reboot notification scripts shared between update-notifier and other packages, notably for server use cases.
Package: update-notifier-common Architecture: all Version: 3.192.30 Priority: optional Section: gnome Source: update-notifier Origin: Ubuntu Maintainer: Michael Vogt [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 1386 Pre-Depends: dpkg (>= 1.15.7.2), apt (>= 1.1~) Depends: python3:any, python3-apt, python3-dbus, python3-debian, python3-debconf | debconf (« 1.5.64~), patch, update-manager-core (>= 1:17.04.2) Recommends: libpam-modules (>= 1.0.1-9ubuntu3) Suggests: policykit-1 Replaces: update-notifier (« 0.75.1) Filename: pool/main/u/update-notifier/update-notifier-common_3.192.30_all.deb Size: 162008 MD5sum: f5fb522ee2c96a9486b2af702d11af8c SHA1: 05c99d67c0e3314252317aaca273df897aaf21b7 SHA256: c900fb1b639e72e4411f5c1f4871d62e43f0f03e7465409381787edc7fb7537a Description-en: Files shared between update-notifier and other packages Apt setup files and reboot notification scripts shared between update-notifier and other packages, notably for server use cases. Task: server, ubuntu-desktop-minimal, ubuntu-desktop, cloud-image, xubuntu-desktop, lubuntu-desktop, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop
There are three methods to install update-notifier-common on Ubuntu 20.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.
Install update-notifier-common Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install update-notifier-common using apt-get by running the following command:
sudo apt-get -y install update-notifier-common
Install update-notifier-common Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install update-notifier-common using apt by running the following command:
sudo apt -y install update-notifier-common
Install update-notifier-common Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.
sudo aptitude update
After updating apt database, We can install update-notifier-common using aptitude by running the following command:
sudo aptitude -y install update-notifier-common
How To Uninstall update-notifier-common on Ubuntu 20.04
To uninstall only the update-notifier-common package we can use the following command:
sudo apt-get remove update-notifier-common
Uninstall update-notifier-common And Its Dependencies
To uninstall update-notifier-common and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove update-notifier-common
Remove update-notifier-common Configurations and Data
To remove update-notifier-common configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge update-notifier-common
Remove update-notifier-common configuration, data, and all of its dependencies
We can use the following command to remove update-notifier-common configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge update-notifier-common
References
Summary
In this tutorial we learn how to install update-notifier-common package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.