LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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
 
LinkBack Search this Thread
Old 10-23-2012, 11:16 AM   #1
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,601

Rep: Reputation: 45
check package dependencies


Hi

Howto check package dependencies, for example dependencies of task-lxde-desktop?
 
Old 10-23-2012, 11:37 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,198

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
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, 07: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, 07:31 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Slackware
Posts: 14,880
Blog Entries: 2

Rep: Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805
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-24-2012, 11:11 PM   #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, 04:25 AM   #6
Randicus Draco Albus
Member
 
Registered: May 2011
Location: Sitting in front of my computer.
Distribution: Debian
Posts: 796
Blog Entries: 2

Rep: Reputation: 193Reputation: 193
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, 02: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, 03:00 PM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Slackware
Posts: 14,880
Blog Entries: 2

Rep: Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805
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, 06: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, 01:02 AM   #10
the dsc
Member
 
Registered: May 2009
Distribution: Debian testing
Posts: 118
Blog Entries: 44

Rep: Reputation: 27
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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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


All times are GMT -5. The time now is 06:10 AM.

Main Menu
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