How To Install dnsmasq-base on Ubuntu 20.04
Introduction
In this tutorial we learn how to install dnsmasq-base
on Ubuntu 20.04.
What is dnsmasq-base
dnsmasq-base is:
This package contains the dnsmasq executable and documentation, but not the infrastructure required to run it as a system daemon. For that, install the dnsmasq package. Task: ubuntu-desktop-minimal, ubuntu-desktop, ubuntu-core, kubuntu-desktop, kubuntu-full, xubuntu-core, xubuntu-desktop, lubuntu-desktop, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop
Package: dnsmasq-base Architecture: amd64 Version: 2.80-1.1ubuntu1 Priority: optional Section: net Source: dnsmasq Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Simon Kelley [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 792 Provides: dnsmasq-base Depends: adduser, libc6 (>= 2.28), libdbus-1-3 (>= 1.9.14), libgmp10, libhogweed5, libidn11 (>= 1.13), libnetfilter-conntrack3 (>= 1.0.7), libnettle7 Recommends: dns-root-data Conflicts: dnsmasq-base-lua Breaks: dnsmasq (« 2.63-1~) Replaces: dnsmasq (« 2.63-1~), dnsmasq-base Filename: pool/main/d/dnsmasq/dnsmasq-base_2.80-1.1ubuntu1_amd64.deb Size: 313840 MD5sum: cff42d9cb2409b939ec1b23ecf7a3ee3 SHA1: 54d5ce073bda889bb4d6339dc97420daa77306fb SHA256: 0f10268a683053d52d48b3eaee20c334fa1505179c2693e9d0e647ed5cf75976 Homepage: http://www.thekelleys.org.uk/dnsmasq/doc.html Description-en: Small caching DNS proxy and DHCP/TFTP server This package contains the dnsmasq executable and documentation, but not the infrastructure required to run it as a system daemon. For that, install the dnsmasq package. Task: ubuntu-desktop-minimal, ubuntu-desktop, ubuntu-core, kubuntu-desktop, kubuntu-full, xubuntu-core, xubuntu-desktop, lubuntu-desktop, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop
There are three methods to install dnsmasq-base
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 dnsmasq-base Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install dnsmasq-base
using apt-get
by running the following command:
sudo apt-get -y install dnsmasq-base
Install dnsmasq-base Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install dnsmasq-base
using apt
by running the following command:
sudo apt -y install dnsmasq-base
Install dnsmasq-base 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 dnsmasq-base
using aptitude
by running the following command:
sudo aptitude -y install dnsmasq-base
How To Uninstall dnsmasq-base on Ubuntu 20.04
To uninstall only the dnsmasq-base
package we can use the following command:
sudo apt-get remove dnsmasq-base
Uninstall dnsmasq-base And Its Dependencies
To uninstall dnsmasq-base
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove dnsmasq-base
Remove dnsmasq-base Configurations and Data
To remove dnsmasq-base
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge dnsmasq-base
Remove dnsmasq-base configuration, data, and all of its dependencies
We can use the following command to remove dnsmasq-base
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge dnsmasq-base
References
Summary
In this tutorial we learn how to install dnsmasq-base
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.