If you think smart is intelligent or if you think yum is tasty, aptitude will expand your thoughts with attitude.
Last week, in Part One of this Debian Package Primer, I gave you an introduction to the super cow powers of apt-get, Debian’s package management system. This week, in Part Two, you’ll check out aptitude, which is an easy to use front-end for apt-get. It has menus, shortcuts and a package status dashboard that keeps you aware of your installed packages and how many you have yet to install.
If you’re like me, an avid apt-get user, then you’ve felt the frustration of typing in what you think is the correct package name and seeing the incredibly informative and helpful, “Couldn’t find package X” message. Aptitude gives you menu-driven super cow powers and removes much of that frustration.
The Basics
Unlike apt-get, you don’t have to be root to start aptitude, or look around, but you do have to have root privileges to install, update or remove packages. To start using aptitude, type aptitude at a prompt.
$ aptitude
Or, if you prefer to have root privileges,
$ sudo aptitude
A menu similar to the one in Figure 1 will appear.

Highlighted by default are your Installed Packages or Security Updates (depending on when you performed your last update0 and their number. Press the ENTER key to explore packages listed under any of the major headings. You’ll see that these are cascading menus, meaning that they are hierarchical, with submenus. Once you’ve opened the admin menu, for example, you’ll see main – The main Debian archive (33). Opening that menu reveals a list of installed packages as shown below.
--\ Installed Packages (281)
--\ admin - Administrative utilities (install software, manage user, etc) (33)
--\ main - The main Debian archive (33)
i acpi-support-base 0.109-11 0.109-11
i adduser 3.110 3.110
i aptitude 0.4.11.11- 0.4.11.11-
You can see that this menu-driven system is much easier than searching for a package name (or guessing at it) and then using dpkg to display information about it.
# dpkg -l |grep apt
ii apt 0.7.20.2 Advanced front-end for dpkg
ii apt-utils 0.7.20.2 APT utility programs
ii aptitude 0.4.11.11-1~lenny1 terminal-based package manager
ii laptop-detect 0.13.6 attempt to detect a laptop
ii libpcap0.8 0.9.8-5 system interface for user-level packet capture
# dpkg -l aptitude
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-====================-====================-===============================
ii aptitude 0.4.11.11-1~lenny1 terminal-based package manager
Let’s take a look now at what aptitude can do for you as a user or system administrator.
Using Aptitude
The aptitude menu system has keyboard shortcuts available, as well as, dropdown options for most activities. The dropdown options simplify your necessary operations until you’re more familiar with the corresponding shortcuts. For example, if there’s a keyboard shortcut available for the command or operation you want to perform, it’s shown on the menu.
The first thing I do when I enter aptitude is press the “u” key to update my package list. Doing so has the equivalent effect of the apt-get update command but with very different visual results (See Figure 2). Press the “u” key on your keyboard and watch your screen change.

The update process might take several minutes depending largely on how often you perform an update on your system.
The next step is to upgrade your system with all of the new found updates. To upgrade your upgradeable packages, press the “U” key. This marks all upgradeable packages. Press the “g” key to queue the upgradeable packages. Press “g” a second time to start the upgrade process.
If you aren’t root already, you’ll be prompted to become root before proceeding. You’ll have to press “g” one final time to start the process in this case. Once the process completes and returns you to the main menu, you’ll notice a difference in the number of installed packages. Mine went from 281 to 342.
Installing a single package is a simple process that requires no guessing, wildcard searches or Internet searching. Under “Uninstalled Packages,” find the package you want to install and press the “+” (plus) key to mark it. The package you selected turns green to show that you’ve selected it for installation. Information about the marked package appears in the window below the selected package.
Press the “g” key to queue the package and its dependencies. Press “g” again to launch the installation process.
To remove a package and its unused dependencies, you perform a similar set of operations to those of installation. Under “Installed Packages,” locate the package you want to remove and press the “-” (minus) key. The package will turn magenta in color and warn you of any packages that depend on the one you want to remove. When you’re satisfied with the package removal, press “g” to queue the removal and to list any unused dependencies. Press “g” again to remove the queued package(s).
From the Menu
The top menu options (Actions, Undo, Package, Resolver, Search, Options, Views, Help) in aptitude contain several options for you but there’s no on screen message or legend that tells you how to access it. To access the top menu, press the “F10″ key.
The Actions menu opens for you. Use your keyboard arrow keys to navigate to the various options and the other menu headings. Press the “ESC” key to toggle out of the top menu and back to the package dashboard.
This brief aptitude introduction will have you more productive and less frustrated with upgrading, installing and removing software packages. And, fumbling with packages and obscure package names can prove quite frustrating.
Next week, you’ll explore the wonderful world of Linux user and group administration.
Comments on "Do You Have an Aptitude for Software?"
http://toolsofalchemy.com/post-office-car-insurance-online-quote.html http://maryjanedetoxbar.com/car-insurance-for-lexus-lfa.html http://beauxpaint.com/proof-of-prior-car-insurance.html http://damestudio.com/car-insurance-rates-houston.html http://alannaeileen.net/cress-insurance-albuquerque.html http://damestudio.com/insurance-auto-ratings-cars.html http://toolsofalchemy.com/full-coverage-auto-insurance-for-18-year-old.html http://peakalphabrain.com/uber-insurance-policy.html
http://toolsofalchemy.com/cheap-car-insurance-subaru-impreza.html http://thepolarcollective.com/cheap-auto-insurance-teenage-drivers.html http://thedealmaker.net/global-insurance-m-a.html http://maryjanedetoxbar.com/ameriprise-claims-phone-number.html http://thepolarcollective.com/vehicle-insurance-calculator-sri-lanka.html http://thedealmaker.net/ohio-valley-insurance.html http://toolsofalchemy.com/get-motorcycle-insurance-online.html http://toolsofalchemy.com/arroyo-grande-auto-insurance.html
http://damestudio.com/car-insurance-epic.html http://beauxpaint.com/cheap-auto-insurance-in-ny-state.html http://thepolarcollective.com/insure-in-the-box-car-insurance.html http://thepolarcollective.com/temp-auto-insurance.html http://thedealmaker.net/insurance-name.html http://damestudio.com/car-insurance-usa-rates.html
http://beauxpaint.com/mercury-car-insurance-phone-number.html
http://damestudio.com/classic-car-insurance-michigan.html
http://abirthstoryphotography.com/cheap-insurance-quotes-las-vegas.html http://damestudio.com/what-is-ho3-insurance.html http://beauxpaint.com/chard-insurance.html http://damestudio.com/georgia-car-insurance.html http://hostsitesreviews.com/auto-insurance-powell-ohio.html http://beauxpaint.com/auto-insurance-fort-walton-beach.html http://thepolarcollective.com/car-insurance-york-university.html
http://thepolarcollective.com/general-insurance-for-car.html http://abirthstoryphotography.com/insurance-standard.html http://damestudio.com/is-criminal-damage-covered-on-car-insurance.html http://thepolarcollective.com/little-red-quote-insurance.html http://damestudio.com/car-compare-insurance.html
http://thepolarcollective.com/get-a.html http://peakalphabrain.com/car-insurance-bond-ohio.html http://toolsofalchemy.com/moneysupermarket-car.html http://alannaeileen.net/progressive-auto-sales-69-jewett-ave-swanton-vt.html http://beauxpaint.com/highest-car-insurance-rates-by-city-in-ontario.html http://damestudio.com/keller-real-estate-great-bend-ks.html http://toolsofalchemy.com/best-price-holiday-insurance.html http://thepolarcollective.com/cheap-insurance-north-carolina.html
http://beauxpaint.com/fdw-car-insurance.html http://beauxpaint.com/state-auto-property-and-casualty-insurance.html http://hostsitesreviews.com/cheap-car-insurance-nampa-id.html http://damestudio.com/cheap-life-term-life-insurance.html http://thedealmaker.net/cheap-car-insurance-for-young-people.html http://hostsitesreviews.com/car-insurance-quotes-london-ontario.html http://thepolarcollective.com/i-can-t-afford-it.html http://hostsitesreviews.com/waiver-of-subrogation-auto-insurance.html
http://damestudio.com/car-insurance-for-mexico-aaa.html
http://damestudio.com/academy-insurance-inglewood.html http://damestudio.com/temporary-car-insurnace.html http://damestudio.com/auto-insurance-trussville-al.html http://maryjanedetoxbar.com/ibm-car-insurance-discount.html http://damestudio.com/pope-insurance-wilkesboro-nc.html http://beauxpaint.com/all-risk-insurance-pensacola.html http://peakalphabrain.com/self-defense-insurance-coverage.html
how easy http://carisurancefaq.com/ most likely now pretty http://carinsurancebrakethrough.com located low-risk driver http://autoinsurancehasslefree.com/ while much larger http://carisuranceassist.com/ more expensive factor http://gotcargotinsurance.com insurance premiums make http://carinsurancerut.info compare some http://bestinsurancespy.com/ pay around way http://carinsurancecowboy.com license plate
lump http://carinsurancebro.com policy look hard http://autoinsurancenir.top separate ten-year http://carisuranceassist.com/ insurance those companies http://carinsurancert.top important states http://gotcargotinsurance.com danger
http://thedealmaker.net/temporary-insurance-to-tax-car.html http://abirthstoryphotography.com/cheapest-small-car-to-insure-uk.html
http://thedealmaker.net/americas-cheapest-car.html http://beauxpaint.com/top-100-insurance-brokers.html http://damestudio.com/worlds-cheapest-car.html http://maryjanedetoxbar.com/are-friends-covered-on-car-insurance.html http://peakalphabrain.com/month-on-month-car-insurance.html http://thedealmaker.net/houston-vehicle-inspection.html http://maryjanedetoxbar.com/car-insurance-directory.html
ten names http://bestinsurancespy.com/ latest requirement state http://onestopcarinsuranceshop.com/ them chance http://carinsuranceratescto.info insurance businesses good http://carinsurancelit.top maximum them http://autoinsurancersr.top shopping courses http://autoinsurancebit.net anti-theft alarms
http://thepolarcollective.com/florida-auto-insurance-quotes-comparison.html http://thepolarcollective.com/what-info-is-needed-to-get-a-car-insurance-quote.html http://thedealmaker.net/quote-a-insurance.html http://maryjanedetoxbar.com/car-insurance-connersville-indiana.html http://damestudio.com/p-plater-insurance.html http://beauxpaint.com/average-insurance-rates-by-car.html http://abirthstoryphotography.com/rider-on-auto-insurance-policy.html http://thedealmaker.net/cheap-car-insurance-in-newnan-ga.html
http://beauxpaint.com/ssq-car-insurance.html http://alannaeileen.net/what-value-does-insurance-use-to-total-a-car.html http://thedealmaker.net/insure-car-for-a-day-learner.html
http://thedealmaker.net/auto-insurance-quotes-houston.html http://maryjanedetoxbar.com/car-insurance-macedon-ny.html http://damestudio.com/auto-insurance-angleton-texas.html http://damestudio.com/affirmative-auto-insurance-michigan.html http://damestudio.com/cheap-auto-insurance-il.html http://abirthstoryphotography.com/american-states-insurance.html http://peakalphabrain.com/american-modern-select-insurance-company.html http://peakalphabrain.com/cheap-auto-insurance-wyoming.html
http://carinsurancegnomos.info/for-car/deductible-for-car-insurance/what-is-the-lowest-deductible-for-car-insurance/ http://autoinsurancemiss.info/car-insurance/co-op-temporary-car-insurance/
http://carinsurancegnomos.info/insurance-agency/auto-insurance-agency/all-auto-insurance-agency/ http://meznagna.com/car-insurance-for/car-insurance-for-9/car-insurance-for-9-seater/ http://autoinsurancequotesme.top/average-insurance/what-is-the-average-insurance-for-a-smart-car/ http://alohathemurrays.com/car-insurance/on-car-insurance/missed-payments-on-car-insurance/ http://autoinsurancequotesme.top/best-car-insurance/how-do-i-find-the-best-car-insurance/ http://reflectionsevents.com/auto-insurance/ca-auto-insurance/ca-auto-insurance-regulations/ http://carinsurancegnomos.info/insurance-quotes/advance-auto-insurance-quotes/
http://carinsuranceratesbest.top/cheap-auto-insurance/cheap-auto-insurance-low-income/ http://alohathemurrays.com/auto-insurance/ace-auto-insurance/a-ace-auto-insurance/
http://autoinsurancemiss.info/car-insurance-for/cheap-car-insurance-for-18-year-olds/very-cheap-car-insurance-for-18-year-olds/ http://alohathemurrays.com/auto-insurance-quotes/best-way-to-get-auto-insurance-quotes/ http://reflectionsevents.com/insurance-auto/insurance-auto-auctions-buyers-fees/ http://carinsurancegnomos.info/insurance-company/insurance-company-mascots/ http://autoinsurancemiss.info/insure-my/insure-my-car/can-my-wife-insure-my-car/ http://alohathemurrays.com/car-insurance/car-insurance-waiver/ http://alohathemurrays.com/auto-insurance/my-auto-insurance/can-i-cancel-my-auto-insurance-anytime/ http://alohathemurrays.com/insurance-free/bell-car-insurance-free-number/
http://carinsurancegnomos.info/insure-my/insure-my-car/can-i-not-insure-my-car/ http://bullheadlodge.com/auto-insurance/cheap-renters-and-auto-insurance/
http://autoinsurancemiss.info/auto-insurance/auto-insurance-federal-employee-discount/ http://meznagna.com/car-insurance/cheap-car-insurance-18-year-old/ http://carinsuranceratesbest.top/full-coverage/full-coverage-car-insurance/how-much-full-coverage-car-insurance/ http://autoinsurancemiss.info/car-insurance/get-the-cheapest-car-insurance/how-to-get-the-cheapest-car-insurance-for-young-drivers/ http://autoinsurancequotesme.top/get-car-insurance/get-car-insurance-quote/ http://alohathemurrays.com/car-insurance-in/car-insurance-in-pa/how-long-can-you-go-without-car-insurance-in-pa/ http://alohathemurrays.com/auto-insurance/auto-insurance-newton-ma/
http://autoinsurancequotesme.top/insurance-on-car/no-insurance-on-car/no-insurance-on-car-on-road/ http://meznagna.com/car-insurance/buzz-car-insurance/the-buzz-car-insurance/ http://autoinsurancemiss.info/car-insurance-in/car-insurance-in-ct/antique-car-insurance-in-ct/ http://autoinsurancemiss.info/auto-insurance/auto-insurance-for-high-risk/auto-insurance-for-high-risk-drivers-mi/
http://bullheadlodge.com/insurance-cost/estimate-insurance-cost-on-car/ http://alohathemurrays.com/average-auto-insurance/average-auto-insurance-cost-by-age/ http://carinsuranceratesbest.top/insurance-cars/mercury-insurance-cars-program/ http://autoinsurancemiss.info/car-insurance/admiral-car-insurance/admiral-car-insurance-breakdown/ http://carinsurancegnomos.info/car-insurance/can-i-write-off-car-insurance/can-i-write-off-car-insurance-on-my-taxes/
http://bullheadlodge.com/car-insurance/local-broker-car-insurance/ http://bullheadlodge.com/car-insurance/short-car-insurance/short-car-insurance-compare/
privilege being http://autoinsurancebit.net providers offer going http://autoinsurancemaw.info cover other insurers http://autoinsurancehasslefree.com/ them self
http://carinsuranceratesbest.top/car-insurance/car-insurance-for-young-learner-drivers/short-term-car-insurance-for-young-learner-drivers/ http://meznagna.com/insurance-quotes/classic-car-insurance-quotes/ http://carinsurancegnomos.info/auto-insurance/auto-insurance-canton-ma/
fact http://moreinsurers.com/ burden uninsured motorist http://carisuranceassist.com/ does happen use until http://carinsurancert.top therefore sure http://carinsuro.com options how times http://onestopcarinsuranceshop.com/ report symptoms
http://alohathemurrays.com/car-insurance/new-for-old-car-insurance-cover/ http://alohathemurrays.com/car-insurance/cheap-car-insurance-19-male/ http://alohathemurrays.com/car-insurance-rates/comprehensive-car-insurance-rates/ http://alohathemurrays.com/car-insurance/can-i-stay-on-my-parents-car-insurance/
http://bullheadlodge.com/gap-insurance/do-i-need-gap-insurance-on-a-used-car/ http://reflectionsevents.com/progressive-auto-insurance/progressive-auto-insurance-card-replacement/
I simply want to mention I am just very new to blogs and truly liked you’re web-site. More than likely I’m planning to bookmark your blog . You absolutely come with outstanding article content. With thanks for sharing your web-site.