Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was wondering how to get the information about a package in terminal, before installation with apt-get install so that I can decide whether to install it, based on the description.

Thanks and regards!

share|improve this question
up vote 28 down vote accepted

Use

 apt-cache show PACKAGE

to see the description and some other information about package PACKAGE.

 dpkg -L package_name

to see what files the package contains.

share|improve this answer
    
The second hint with listing the package content ie. files doesn't work for me. It always says dpkg-query: package 'package_name' is not installed so it can't be used for inspecting the file before installing it. The apt-file utility seems to be a more viable option for that, although I can't refer from my own experience yet. – Huge Mar 2 at 16:05

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.