Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[portage] dipendenze da e verso
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano
View previous topic :: View next topic  
Author Message
battistis
Apprentice
Apprentice


Joined: 20 Jul 2006
Posts: 249

PostPosted: Thu Jan 18, 2007 5:04 pm    Post subject: [portage] dipendenze da e verso Reply with quote

salve,
come posso usare portage per sapere quali sono le dipendenze di un pacchetto e all'inverso da quali pacchetti dipende?
_________________
\\ba7/
Back to top
View user's profile Send private message
syntaxerrormmm
Guru
Guru


Joined: 17 Apr 2005
Posts: 449
Location: Romano di Lombardia - BG - ITALY

PostPosted: Thu Jan 18, 2007 5:32 pm    Post subject: Reply with quote

Code:
man equery
emerge -av udept && man dep

Ciao.
_________________
"Every rule can be broken, but no rule may be ignored."

Last.fm - Gentoo 2006.1 on:
Acer Aspire 1355LC - suspend2-sources-2.6.18-r3
IBM Thinkpad T30 - suspend2-sources-2.6.19-r3
Back to top
View user's profile Send private message
Peach
Advocate
Advocate


Joined: 08 Mar 2003
Posts: 3686
Location: London, UK

PostPosted: Thu Jan 18, 2007 5:44 pm    Post subject: Reply with quote

se non hai equery
Code:
# emerge -av gentoolkit

_________________
Gentoo user since 2004.
"It's all fun and games, until someone loses an eye" - mom
Back to top
View user's profile Send private message
battistis
Apprentice
Apprentice


Joined: 20 Jul 2006
Posts: 249

PostPosted: Thu Jan 18, 2007 5:58 pm    Post subject: Reply with quote

equery o udept?
qual'e' la differenza?
_________________
\\ba7/
Back to top
View user's profile Send private message
Onip
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 2912
Location: Parma (Italy)

PostPosted: Thu Jan 18, 2007 6:14 pm    Post subject: Reply with quote

non ho mai usato udept, ma immagino che ognuno abbia i suoi punti forti e quelli deboli. Se puoi averli entrambi...
L'unica cosa è che equery, facendo parte del gentoolkit, è ufficialmente supportato dai dev gentoo
_________________
Linux Registered User n. 373835

Titus Lucretius Carus, De Rerum Natura - Tantum religio potuit suadere malorum
Back to top
View user's profile Send private message
syntaxerrormmm
Guru
Guru


Joined: 17 Apr 2005
Posts: 449
Location: Romano di Lombardia - BG - ITALY

PostPosted: Thu Jan 18, 2007 7:10 pm    Post subject: Reply with quote

man dep wrote:
DESCRIPTION
List dependencies and reverse dependencies of packages, and clean the
world file and the set of installed packages.

man equery wrote:
DESCRIPTION
equery is a flexible utility which may display various information about
packages, such as the files they own, their USE flags, the md5sum of each
file owned by a given package, and many other things.


Era troppo semplice leggersi le manpages? :evil:

Ciao.
_________________
"Every rule can be broken, but no rule may be ignored."

Last.fm - Gentoo 2006.1 on:
Acer Aspire 1355LC - suspend2-sources-2.6.18-r3
IBM Thinkpad T30 - suspend2-sources-2.6.19-r3
Back to top
View user's profile Send private message
Cazzantonio
Bodhisattva
Bodhisattva


Joined: 20 Mar 2004
Posts: 4514
Location: Somewere around the world

PostPosted: Thu Jan 18, 2007 7:23 pm    Post subject: Reply with quote

udept fa molte più cose di equery e funziona molto meglio (equery da dipendenze un po' sballate talvolta), solo è molto più lento.

altrimenti metti paludis al posto di portage e potrai fare queste belle cose nativamente :-)
_________________
Any mans death diminishes me, because I am involved in Mankinde; and therefore never send to know for whom the bell tolls; It tolls for thee.
-John Donne
Back to top
View user's profile Send private message
drizztbsd
Retired Dev
Retired Dev


Joined: 21 Nov 2004
Posts: 278
Location: Cesano Maderno

PostPosted: Thu Jan 18, 2007 7:57 pm    Post subject: Reply with quote

equery è quasi deprecato da q.
installa portage-utils e usa qdepends :)
_________________
Gentoo/Alt lead
Gentoo/*BSD and Gentoo/FreeBSD deputy lead
Paludis contributor
Back to top
View user's profile Send private message
Peach
Advocate
Advocate


Joined: 08 Mar 2003
Posts: 3686
Location: London, UK

PostPosted: Fri Jan 19, 2007 9:23 am    Post subject: Reply with quote

Drizzt Do` Urden wrote:
equery è quasi deprecato da q.

q :?:
_________________
Gentoo user since 2004.
"It's all fun and games, until someone loses an eye" - mom
Back to top
View user's profile Send private message
Scen
Retired Dev
Retired Dev


Joined: 29 Jul 2003
Posts: 2470
Location: Padova, Italy

PostPosted: Fri Jan 19, 2007 9:29 am    Post subject: Reply with quote

Code:

# emerge portage-utils

[...]

# q
Usage: q <applet> [arguments]...

Currently defined applets:
        q <applet> <args> : virtual applet
    qatom <pkg>           : split atom strings
   qcache <action> <args> : search the metadata cache
   qcheck <pkgname>       : verify mtimes/digests
 qdepends <pkgname>       : show dependency info
    qfile <filename>      : list all pkgs owning files
    qglsa <action> <list> : check GLSAs against system
    qgrep <misc args>     : grep in ebuilds
    qlist <pkgname>       : list files owned by pkgname
     qlop <pkgname>       : emerge log analyzer
   qmerge <pkgnames>      : fetch and merge binary package
     qpkg <misc args>     : manipulate Gentoo binpkgs
      qpy <misc args>     : python interface
  qsearch <regex>         : search pkgname/desc
    qsize <pkgname>       : calculate size usage
    qtbz2 <misc args>     : manipulate tbz2 packages
     quse <useflag>       : find pkgs using useflags
    qxpak <misc args>     : manipulate xpak archives

Options: -[irmvqChV]
  -i, --install        * Install symlinks for applets
  -r, --reinitialize   * Reinitialize ebuild cache
  -m, --metacache      * Reinitialize metadata cache
  -v, --verbose        * Make a lot of noise
  -q, --quiet          * Tighter output; suppress warnings
  -C, --nocolor        * Don't output color
  -h, --help           * Print this help and exit
  -V, --version        * Print version and exit

_________________
I was born in a deep forest/I wish I could live here all my life/I am made from stones and roots/My home, these woods and roads
All my life I loved this sound/Of the woods all around/Eagles flies where the winds blows free
Journey is my destiny
Back to top
View user's profile Send private message
Cazzantonio
Bodhisattva
Bodhisattva


Joined: 20 Mar 2004
Posts: 4514
Location: Somewere around the world

PostPosted: Fri Jan 19, 2007 10:05 am    Post subject: Reply with quote

mah... tempo fa feci uno script basato su "q" (nome infelice) per cercare le dipendenze inverse dei pacchetti ed elencare i pacchetti inutili... mi ricordo che sparava diverse bombe e non era assolutamente affidabile con i pacchetti slotted :roll:
_________________
Any mans death diminishes me, because I am involved in Mankinde; and therefore never send to know for whom the bell tolls; It tolls for thee.
-John Donne
Back to top
View user's profile Send private message
Peach
Advocate
Advocate


Joined: 08 Mar 2003
Posts: 3686
Location: London, UK

PostPosted: Mon Apr 07, 2008 5:27 pm    Post subject: Reply with quote

Cazzantonio wrote:
mah... tempo fa feci uno script basato su "q" (nome infelice) per cercare le dipendenze inverse dei pacchetti ed elencare i pacchetti inutili... mi ricordo che sparava diverse bombe e non era assolutamente affidabile con i pacchetti slotted :roll:


io per le dipendenze inverse sto sperimentando comandi tipo:
Code:
for i in `eix --only-names -I`; do qdepends -a $i | grep transcode; done

che usa eix e q*

secondo voi è una idiozia o occorrerebbe tenere in considerazione altri parametri? tipo magari avere un output preciso dei pacchetti con anche la versione?
potrebbe essere affidabile l'output?
_________________
Gentoo user since 2004.
"It's all fun and games, until someone loses an eye" - mom
Back to top
View user's profile Send private message
Luca89
Advocate
Advocate


Joined: 27 Apr 2005
Posts: 2107
Location: Agrigento (Italy)

PostPosted: Mon Apr 07, 2008 6:03 pm    Post subject: Reply with quote

Peach wrote:
io per le dipendenze inverse sto sperimentando comandi tipo:

Code:
qdepends -Q

non calcola di già le dipendenze inverse?
_________________
Running Fast!
Back to top
View user's profile Send private message
riverdragon
Veteran
Veteran


Joined: 14 Sep 2006
Posts: 1269
Location: Verona

PostPosted: Mon Apr 07, 2008 8:01 pm    Post subject: Reply with quote

Sì ma funziona male, presupposto è che il risultato sia uguale a quello di equery depends <...> ma spesso non lo è. Per le dipendenze io uso equery, per il resto invece va bene q.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum