.

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 ..

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 ...
  • 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 [...]
  • INTRODUCTION: The 25-Part Ubuntu KARMIC KOALA BIBLE

    Detailing every aspect over 25 parts, this reference helps you to set up, enhance and use the ultimate installation of Ubuntu's superb new operating system. Stepped out in easy-read copy/paste detail, these how-to [...]
  • Upgrading the System and Software

    Once you have repositories set up and your system updated to reflect what upgrades, patches, packages, software, libraries and so on are available, it's time to safe-upgrade. Safe-upgrade? Didn't it used to be [...]
  • 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 [...]
  • A User-Friendly Command Line Shell .. (Yup, For Real!)

    This guide & cheatsheet - using simple memorable commands, not complex syntax - will make you not only faster at the Linux shell, but enjoy it too. Copying over my old bashrc file to a new install (it lives in [...]
  • 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 [...]
... maybe you'll like these?

.