On Ubuntu and other Debian Linux distributions, you can use the command-line utility apt-get to manage packages. Behind the scenes, apt-get makes use of the package manager dpkg. To download a package, you can run the command apt-get download followed by the package name:
apt-get download package_name
As the root user, change to the /tmp directory:
root@ubuntu-linux:~# cd /tmp
To download the cmatrix package, you can run the command:
root@ubuntu-linux:/tmp# apt-get download cmatrix
Get:1 http://ca.archive.ubuntu.com/ubuntu bionic/universe amd64 cmatrix amd64
1.2a-5build3 [16.1 kB]
Fetched 16.1 kB in 1s (32.1 kB/s)
The cmatrix package will be downloaded in /tmp:
root@ubuntu-linux:/tmp# ls
cmatrix_1.2a-5build3_amd64.deb
Notice the .deb extension in the package name, which signals that it's a Debian package. On RedHat distributions, package names end with the .rpm extension. You can list the files inside the cmatrix package by running the command dpkg -c as follows...