Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have the following sources enabled: main, universe, restricted and multiverse. On Ubuntu Software Center on 11.10 I see two packages for Emacs:

What is the difference between metapackage version and non-metapackage one?

By the way, this thread What differences are there between the various version of Emacs available? also explains the difference between two Emacs versions: Emacs and Emacs-snapshot, and interestingly I don't see these packages now on my Ubuntu Software Center.

share|improve this question
add comment

2 Answers

up vote 3 down vote accepted

You can see from the descriptions.

For emacs, the metapackage, we have

Description-en: The GNU Emacs editor (metapackage)
 GNU Emacs is the extensible self-documenting text editor.
 This is a metapackage which will always depend on the latest Emacs
 release.

while for the other we have

Description-en: The GNU Emacs editor
 GNU Emacs is the extensible self-documenting text editor.
 This package contains a version of Emacs with a Lucid user interface.

So you should install the first, that should automatically bring in the current version of emacs as a dependency.

Update

A metapackage is a package that do not provides the files of an application per se, but it lives only because of its dependencies. When you install it, also dependencies get installed (a metapackage has also other characteristics, but it is enough here).

If you run apt-cache show emacs | grep Depends, you would get the following output:

Depends: emacs23 | emacs23-lucid | emacs23-nox

and it means that when you install emacs, it needs one of that three packages. How the package manager choose which one to install, I don't know.

share|improve this answer
    
Thanks @enzotib, but I still don't fully understand the difference. What is the difference between a metapackage and a package? Is this a distinction that Ubuntu or the Unix/Linux community makes between packages? Also, does the second package have a Lucid user interface, while the first one a Oneiric one? –  user815423426 Dec 17 '11 at 18:08
add comment

A metapackage is for your convenience. Think of it as a container of packages. (It's a package of packages, hence the name meta-.)

Metapackages are intended to make it easier to install stuff. Sometimes they group a number of packages (either regular packages or other meta packages) together. Other times they automatically choose the exact package version for you without you having to know any of the details.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.