APT-GET and packages description

Asked by qsummon

I'm new on ubuntu, so i start to use the apt-get and aptitude with no issues and there really cool packages managers.
I use to work at level 3 (no gui).
My questions are:

1 Is there any way to redirect where the package is going to be installed. I mean if you install apt-get install xy.app and this xy.app is going to be installed in (ej) /usr/share/xxyy.app. Can I redirect this package to be installed on /opt/xxyy.app?

2 When I use apt-cache pkgname i have all the packages names. Is there any way to bring all the packages description?. Not just for one I mean for all of the packages availables (something like rpm -qa, but for the availables patches)

Thanks a lot

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
Ufuk
Solved:
Last query:
Last reply:
Revision history for this message
Ufuk (ufukkilicaslan) said :
#1

For your second question, you can learn details by:

apt-get cache show package_name

For you first question, I don't know a way doing this with apt, but you can look up to dpkg options. Check also apt howto:

http://www.debian.org/doc/manuals/apt-howto/

Revision history for this message
Ufuk (ufukkilicaslan) said :
#2

For your second question, you can learn details by:

apt-cache show package_name

For you first question, I don't know a way doing this with apt, but you can look up to dpkg options. Check also apt howto:

http://www.debian.org/doc/manuals/apt-howto/

Revision history for this message
Best Ufuk (ufukkilicaslan) said :
#3

Sorry for first message, it is corrected in second message: apt-cache show package_name

Revision history for this message
qsummon (qsummon) said :
#4

Thanks Ufuk, that solved my question.