How To Install base-files on Ubuntu 20.04
Introduction
In this tutorial we learn how to install base-files
on Ubuntu 20.04.
What is base-files
base-files is:
This package contains the basic filesystem hierarchy of a Debian system, and several important miscellaneous files, such as /etc/debian_version, /etc/host.conf, /etc/issue, /etc/motd, /etc/profile, and others, and the text of several common licenses in use on Debian systems. Task: minimal
Package: base-files Architecture: amd64 Version: 11ubuntu5 Multi-Arch: foreign Priority: required Essential: yes Section: admin Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Santiago Vila [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 390 Provides: base Pre-Depends: awk Depends: libc6 (>= 2.3.4), libcrypt1 (>= 1:4.4.10-10ubuntu3) Breaks: debian-security-support (« 2019.04.25), initscripts (« 2.88dsf-13.3), sendfile (« 2.1b.20080616-5.2~) Replaces: base, dpkg (<= 1.15.0), miscutils Filename: pool/main/b/base-files/base-files_11ubuntu5_amd64.deb Size: 60132 MD5sum: 562ba4b356c49039b6c1f599d92131e6 SHA1: 484c803178628c1c69c488f46e09c23a8e274f0e SHA256: f3d42324001218db6d1d1489d59b83e2e73f5ae45823230145b9a559254e0034 Description-en: Debian base system miscellaneous files This package contains the basic filesystem hierarchy of a Debian system, and several important miscellaneous files, such as /etc/debian_version, /etc/host.conf, /etc/issue, /etc/motd, /etc/profile, and others, and the text of several common licenses in use on Debian systems. Task: minimal
There are three methods to install base-files
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 base-files Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install base-files
using apt-get
by running the following command:
sudo apt-get -y install base-files
Install base-files Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install base-files
using apt
by running the following command:
sudo apt -y install base-files
Install base-files 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 base-files
using aptitude
by running the following command:
sudo aptitude -y install base-files
How To Uninstall base-files on Ubuntu 20.04
To uninstall only the base-files
package we can use the following command:
sudo apt-get remove base-files
Uninstall base-files And Its Dependencies
To uninstall base-files
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove base-files
Remove base-files Configurations and Data
To remove base-files
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge base-files
Remove base-files configuration, data, and all of its dependencies
We can use the following command to remove base-files
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge base-files
References
Summary
In this tutorial we learn how to install base-files
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.