Installing and removing software
Throughout this book, I've had you use the apt-get
command multiple times to download and install various packages, so, technically, you've already worked through at least some package management. But we've never had a formal discussion about this command, so in this section we'll go a little more in depth with it.
As you've seen before, we can use apt-get
along with the install
keyword and then a package name in order to install a new package on your system. For example, the following command will install the openssh-server
package:
# apt-get install openssh-server
You can also install multiple packages at a time by separating each with a space, instead of installing each package one at a time. The following example will install three different packages:
# apt-get install <package1> <package2> <package3>
Removing packages follows a very similar syntax; you would only need to replace the keyword install
with remove...