View previous topic :: View next topic |
Author |
Message |
battistis Apprentice
Joined: 20 Jul 2006 Posts: 249
|
Posted: Thu Jan 18, 2007 5:04 pm Post subject: [portage] dipendenze da e verso |
|
|
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 |
|
|
syntaxerrormmm Guru
Joined: 17 Apr 2005 Posts: 449 Location: Romano di Lombardia - BG - ITALY
|
Posted: Thu Jan 18, 2007 5:32 pm Post subject: |
|
|
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 |
|
|
Peach Advocate
Joined: 08 Mar 2003 Posts: 3686 Location: London, UK
|
Posted: Thu Jan 18, 2007 5:44 pm Post subject: |
|
|
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 |
|
|
battistis Apprentice
Joined: 20 Jul 2006 Posts: 249
|
Posted: Thu Jan 18, 2007 5:58 pm Post subject: |
|
|
equery o udept?
qual'e' la differenza? _________________ \\ba7/ |
|
Back to top |
|
|
Onip Advocate
Joined: 02 Sep 2004 Posts: 2912 Location: Parma (Italy)
|
Posted: Thu Jan 18, 2007 6:14 pm Post subject: |
|
|
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 |
|
|
syntaxerrormmm Guru
Joined: 17 Apr 2005 Posts: 449 Location: Romano di Lombardia - BG - ITALY
|
Posted: Thu Jan 18, 2007 7:10 pm Post subject: |
|
|
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?
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 |
|
|
Cazzantonio Bodhisattva
Joined: 20 Mar 2004 Posts: 4514 Location: Somewere around the world
|
Posted: Thu Jan 18, 2007 7:23 pm Post subject: |
|
|
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 |
|
|
drizztbsd Retired Dev
Joined: 21 Nov 2004 Posts: 278 Location: Cesano Maderno
|
Posted: Thu Jan 18, 2007 7:57 pm Post subject: |
|
|
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 |
|
|
Peach Advocate
Joined: 08 Mar 2003 Posts: 3686 Location: London, UK
|
Posted: Fri Jan 19, 2007 9:23 am Post subject: |
|
|
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 |
|
|
Scen Retired Dev
Joined: 29 Jul 2003 Posts: 2470 Location: Padova, Italy
|
Posted: Fri Jan 19, 2007 9:29 am Post subject: |
|
|
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 |
|
|
Cazzantonio Bodhisattva
Joined: 20 Mar 2004 Posts: 4514 Location: Somewere around the world
|
Posted: Fri Jan 19, 2007 10:05 am Post subject: |
|
|
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 _________________ 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 |
|
|
Peach Advocate
Joined: 08 Mar 2003 Posts: 3686 Location: London, UK
|
Posted: Mon Apr 07, 2008 5:27 pm Post subject: |
|
|
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 |
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 |
|
|
Luca89 Advocate
Joined: 27 Apr 2005 Posts: 2107 Location: Agrigento (Italy)
|
Posted: Mon Apr 07, 2008 6:03 pm Post subject: |
|
|
Peach wrote: | io per le dipendenze inverse sto sperimentando comandi tipo: |
non calcola di già le dipendenze inverse? _________________ Running Fast! |
|
Back to top |
|
|
riverdragon Veteran
Joined: 14 Sep 2006 Posts: 1269 Location: Verona
|
Posted: Mon Apr 07, 2008 8:01 pm Post subject: |
|
|
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 |
|
|
|