.

apt-get v aptitude v Synaptic v Software Ctr [KARMIC BIBLE #6]

English   English (change)
  • Digg
  • Twitter
  • Technorati
  • del.icio.us
  • Facebook
  • MySpace
  • Reddit
  • StumbleUpon
  • LinkedIn
  • email

Four Ways to Install .. Here's Why Aptitude Is Best?

ubuntu karmic koala

As we install many packages from a clean install, let's compare the 4 methods for this and software removal, 2 of which are new, included by default.

The first two methods, apt-get and aptitude, are used in conjunction with the terminal. The other two, the Synaptic Package Manager and Karmic's new Software Center are the GUI (graphical user interface) equivalents.

To delve deeper ..

the_guv's sistasite: Setup The Ultimate VPS

"Blank box to top-notch web server"

  • plain English copy/paste tutorials with video
  • written for VPS beginners and Linux newbies
  • perfect for multiple sites, blogs & more
  • Fast. Secure. Future-proofed. Cheap-as-chips!
  • "Wow!!" "godsend!!" "GREAT!!!" "awesome"

Ubuntu & Debian, Nginx (beats Apache), MySQL, PHP-FPM, Xcache, WordPress, WP MU, Drupal etccccc

Set Up & Enhance Ubuntu 9.10 .. KARMIC KOALA BIBLE

In simple copy/paste steps .. from zero to hero.

Scroll down for the full series index.

Wake up and smell the Ubuntu! Hope it helps. the_guv

apt-get An installation/removal method. As well as installing/removing packages, it installs any dependency files, such as relevant libraries, and removes conflicting software.

aptitude Ditto apt-get. Except. When you remove with apt-get, it doesn't remember, and so doesn't remove, any dependency files. Aptitude remembers your installations, so when you remove something, it removes the dependencies too. There is a proviso to this advantage, and that is that any required dependencies are known by your machine prior to installation. To be safe, before installing with aptitude, run a quick "update".

.. So, the long and short of that is, of apt-get and aptitude, I only ever use aptitude which, BTW, is installed by default with Karmic Koala (it had to be manually installed with prior versions). If anyone can tell me why I should ever use apt-get, I'm all ears. There are those that say you should use either one or the other. Hmmn, just use aptitude then!

Synaptic The GUI equivalent of aptitude or apt-get, and includes other useful tools like the repository manager. I don't use it in this guide for installations. Why? Other than because it does the same thing, here are the steps involved:-

  • Open System > Administration > Synaptic Package Manager
  • Search for the program or package ***
  • Check the box Mark for Installation
  • Click the Apply button

*** This can be very handy, particularly with the resulting package description.

Software Center Essentially the now-deprecated Add/Remove procedure rewrapped for user-friendliness. It's a method not dissimilar to Synaptic. Again, it takes too long. Then again, it's pretty, and I for one like pretty .. but generally I prefer speed!

Using aptitude, on the other hand:-

  • Open Applications > Services > Terminal (if it isn't already open)
  • Type sudo aptitude install [package] or sudo aptitude remove [package]

.. and this can be simplified even further, with a one-time edit to the bashrc file. Read the next section Terminal Alias Shortcuts with bashrc for more on this (and lots lots lots more) ..

.. but, basically, all I ever type is install [some package] or remove [another]. In this guide though, I'll use the full syntax except in the bashrc section.

Result: As well as its great dependency file memory feature, aptitude = more time down the pub.

Linux. Built for speed .. and beer drinkers.


If you liked that ...
  • Easy-as-you-like! Adapt Square Boxes with Hassle-Free Curves

    Give your site a design lift with this simple CSS code snippet. Simply choose a radius and drop it in a div for a real easy way to add curves without any images or javascript. This is super-fast to do and works for [...]
  • Jaunty Install Problem with AMD Laptops

    FATAL: could not load modules.dep is a message you may have been pulling your hair out over, especially as after that the Ubuntu 9.04 installation fails. It seems to affect AMD Athlon laptops where the disc is being [...]
  • Video How-to: Install & Configure a WordPress Plugin

    One of the great things about the WordPress blog platform is how adaptable it is. Need some special functionality? There's bound to be a plugin - an extension - that will help. This tutorial, complete with [...]
  • Perfect Windows PC Install

    Want a fast, cheap-as-chips, bullet-proof dream machine? Here's how... The Perfect Windows PC Install may involve a bin, buying a Mac instead and using that. Else installing Linux. Then again, for many reasons a [...]
  • Video How-to: Install WordPress - Nice 'n Simple

    So you wanna blog, huh? And you've looked at the options, and like WordPress. Me too! And you like the expandability and personalisation that a WordPress standalone install gives, but are put off by the [...]
  • 15 Ways to Protest About Facebook's Content Scraping Strategy

    So, what's the problem? Facebook's already about-faced, yeah? Your content is safe, huh? 'Cos it's been all over the blogoswhatnot, featured on webzines and buried down CNN's running order. It's Digged to [...]
... maybe you'll like these?

.