LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices



Reply
 
Search this Thread
Old 10-23-2012, 12:16 PM   #1
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,618

Rep: Reputation: 48
check package dependencies


Hi

Howto check package dependencies, for example dependencies of task-lxde-desktop?
 
Old 10-23-2012, 12:37 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,266

Rep: Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661
Looks like 'apt-rdepends' can do that ..
http://www.ubuntugeek.com/how-to-che...on-ubuntu.html
""By default, apt-rdepends shows a listing of each dependency a package has.
It will also look at each of these fulfilling packages, and recursively
lists their dependencies.""

( Found with Google .. apt (r)depends .. )

.
 
1 members found this post helpful.
Old 10-24-2012, 08:20 PM   #3
countach74
Member
 
Registered: Feb 2011
Distribution: Ubuntu 10.04, Debian Squeeze
Posts: 46

Rep: Reputation: 7
Another solution is to use
Code:
apt-cache showpkg task-lxde-desktop
Or you can use show instead of showpkg
 
Old 10-24-2012, 08:31 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,650
Blog Entries: 2

Rep: Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095
Quote:
Originally Posted by countach74 View Post
Another solution is to use
Code:
apt-cache showpkg task-lxde-desktop
Or you can use show instead of showpkg
When using apt-cache it would be better to use the depends and rdepends commands instead of show/showpkg.
 
Old 10-25-2012, 12:11 AM   #5
countach74
Member
 
Registered: Feb 2011
Distribution: Ubuntu 10.04, Debian Squeeze
Posts: 46

Rep: Reputation: 7
Why? They show the same things. Granted, show and showpkg display additional information.
 
Old 10-25-2012, 05:25 AM   #6
Randicus Draco Albus
Senior Member
 
Registered: May 2011
Location: Wallowing in a pit of despair.
Distribution: OpenBSD
Posts: 1,382
Blog Entries: 4

Rep: Reputation: 418Reputation: 418Reputation: 418Reputation: 418Reputation: 418
If they display different amounts of information, they do not show the same things, do they?
Quote:
Granted, show and showpkg display additional information.
Perhaps that is why TobiSGD recommends them?
 
Old 10-25-2012, 03:32 PM   #7
countach74
Member
 
Registered: Feb 2011
Distribution: Ubuntu 10.04, Debian Squeeze
Posts: 46

Rep: Reputation: 7
They show the same package information. Look, if the reason to use one command over another is simply the format that it's displayed, that's fine, but say so. If one way is technically more/less correct, then I want to know about it. Being as I've never used apt-cache depends/rdepends, I want to know WHY those are the correct commands. Please don't be a smart ass about the response. From what I can tell, they do show the same package dependency information; is the output the same? No.
 
Old 10-25-2012, 04:00 PM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,650
Blog Entries: 2

Rep: Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095
Quote:
Originally Posted by countach74 View Post
They show the same package information. Look, if the reason to use one command over another is simply the format that it's displayed, that's fine, but say so. If one way is technically more/less correct, then I want to know about it. Being as I've never used apt-cache depends/rdepends, I want to know WHY those are the correct commands. Please don't be a smart ass about the response. From what I can tell, they do show the same package dependency information; is the output the same? No.
Actually, they don't show you the same information.
Assume I want information about the dependencies/recommends of package lxde on Debian Squeeze, especially information about display-managers.
show shows me that there is a recommend for either gdm or x-display-manager, showpkg shows me that there is a dependency on gdm and x-display-manager (since it doesn't show you that gdm can provide x-display-manager). So alone these two are not consistent on the info they show.
Now try it with depends instead and it will show you that there is a recommend for either gdm or x-display-manager and that x-display-manager is provided by the packages gdm, gdm3, kdm, slim and xdm (and actually they should add nodm to that list).

The same is true for browsers, show shows a recommendation for chromium-browser, iceweasel or www-browser, showpkg shows dependencies for chromium-browser, iceweasel and www-browser, depends show you that there is a recommendation for either chromium-browser, iceweasel or www-browser and lists all 25 packages that can provide www-browser.

Neither show nor showpkg have a functionality that resembles rdepends.

That are the reasons why I recommended to use depends and rdepends when you are using apt-cache anyways.
 
1 members found this post helpful.
Old 10-25-2012, 07:33 PM   #9
countach74
Member
 
Registered: Feb 2011
Distribution: Ubuntu 10.04, Debian Squeeze
Posts: 46

Rep: Reputation: 7
Thank you for taking the time to respond to my question.
 
Old 11-20-2012, 02:02 AM   #10
the dsc
Member
 
Registered: May 2009
Distribution: Debian
Posts: 136
Blog Entries: 74

Rep: Reputation: 33
Recent versions of synaptic (Wheezy and Sid I guess, I don't think it's on stable) also have a tab with dependencies and dependant packages for every selected package.
 
  


Reply

Tags
check, dependencies, package, task-lxde-desktop


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Solaris installing package dependencies check? LinuxLover Solaris / OpenSolaris 2 02-22-2009 05:51 PM
check bin or package dependencies? ldeveloperxl Linux - Software 4 11-10-2007 04:08 AM
How to check if a package(eg. gdebi)will be available in 'Etch' as binary package? Akhran Debian 4 08-28-2006 12:53 PM
check dependencies syeronne Linux - Newbie 1 11-30-2005 10:53 AM
installing package without dependencies check noir-gel Linux - General 2 03-03-2003 09:29 PM


All times are GMT -5. The time now is 03:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration