15.01.2024 Views

CompTIA A+ Certification All-in-One Exam Guide

  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

TIP For some reason, the Red Hat Package Manager today is called the

RPM Package Manager. It’s silly and redundant, like ATM machine, but

don’t be surprised if that’s what you hear in the field.

The apt-get command is wonderfully simple to use, assuming you know

the name of the program you wish to install. Many Linux users aren’t big

fans of the old-fashioned vi text editor, for example, and prefer to use the

substantially better vim text editor. To download and install the latter

program, start by typing the following:

mike@server:~$ sudo apt-get update

Have APT update its package index, the list of all the available packages

(software). You can technically skip this step, but you might end up installing

an old version or, if the package is new enough, not finding it. Once APT’s

index has been updated, type this next:

mike@server:~$ sudo apt-get install vim

That’s it! Vim will now be installed and ready to use. Got vim already

installed but want the newest version? No problem! Just use apt-get again:

mike@server:~$ sudo apt-get upgrade vim

The only downside to apt-get is that you need to know the name of the

package you want to install. While there are command-line tools that help

(apt-cache), many people prefer to use the graphical search tool their Linux

distro provides, such as the Ubuntu Software Center.

As useful as APT is for fetching and installing single applications, that’s

not where its real power lies. These package managers can manage all the

software (minus the stuff you compiled yourself) on the system and are the

tool that you use to keep the whole system up to date, just as Windows

Update handles much of the software on Windows. All that it takes to

upgrade all the packages on your system is to type

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!