Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[portage]Come ricavare il nome del pacchetto senza versione?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page Previous  1, 2, 3  
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano
View previous topic :: View next topic  
Author Message
gioi
Apprentice
Apprentice


Joined: 14 Feb 2006
Posts: 236

PostPosted: Wed Jan 24, 2007 2:39 pm    Post subject: Reply with quote

POST SBAGLIATO
Back to top
View user's profile Send private message
ProT-0-TypE
Veteran
Veteran


Joined: 20 Dec 2003
Posts: 1624
Location: Cagliari

PostPosted: Wed Jan 24, 2007 2:43 pm    Post subject: Reply with quote

gioi wrote:


Code:
comando_per_generare_la_lista | perl -p -e 's/\-\d+\..+//' | perl -p -e 's/\-\d{4,}.+//'


Se ci sono altre eccezioni segnalatemele, per favore! 'sta cosa mi sta prendendo...


con questo pacchetto non funziona: ilbc-rfc3951-0-r1
_________________
[Vuoi guadagnare navigando?]
Back to top
View user's profile Send private message
gioi
Apprentice
Apprentice


Joined: 14 Feb 2006
Posts: 236

PostPosted: Wed Jan 24, 2007 2:49 pm    Post subject: Reply with quote

ProT-0-TypE wrote:

con questo pacchetto non funziona: ilbc-rfc3951-0-r1


Ma esiste davvero? però questo non vale... non lo capisco io qual è la versione e quale il nome figuriamoci uno script...
Back to top
View user's profile Send private message
ProT-0-TypE
Veteran
Veteran


Joined: 20 Dec 2003
Posts: 1624
Location: Cagliari

PostPosted: Wed Jan 24, 2007 2:52 pm    Post subject: Reply with quote

esiste esiste...
il pacchetto è questo: dev-libs/ilbc-rfc3951
e la versione è la 0-r1
_________________
[Vuoi guadagnare navigando?]
Back to top
View user's profile Send private message
gioi
Apprentice
Apprentice


Joined: 14 Feb 2006
Posts: 236

PostPosted: Wed Jan 24, 2007 2:56 pm    Post subject: Reply with quote

ProT-0-TypE wrote:
esiste esiste...
il pacchetto è questo: dev-libs/ilbc-rfc3951
e la versione è la 0-r1


(ho capito, era una battuta la mia.... miiiiiiiiiii come sei pignoloooooooo!) :P
Back to top
View user's profile Send private message
mouser
Veteran
Veteran


Joined: 10 Aug 2004
Posts: 1419
Location: Milano

PostPosted: Wed Jan 24, 2007 2:59 pm    Post subject: Reply with quote

gioi wrote:
Ma esiste davvero? però questo non vale... non lo capisco io qual è la versione e quale il nome figuriamoci uno script...


LOL

mouser :wink:
Back to top
View user's profile Send private message
mouser
Veteran
Veteran


Joined: 10 Aug 2004
Posts: 1419
Location: Milano

PostPosted: Wed Jan 24, 2007 3:10 pm    Post subject: Reply with quote

Momentaneamente ho adottato la soluzione di makoomba poichè, nonostante l'utilizzo di un piccolo script esterno, permette una semplice concatenazione in pipe utilizzando comunque direttive specifiche di portage e senza aggiungere dipendenze di sorta (a meno che.... mi sorge un dubbio.... python lo avete tutti?? :lol: ).

Per ora resto così, nel frattempo continuo a testare di brutto.

Ciriciao
mouser :wink:
Back to top
View user's profile Send private message
makoomba
Bodhisattva
Bodhisattva


Joined: 03 Jun 2004
Posts: 1856

PostPosted: Wed Jan 24, 2007 3:50 pm    Post subject: Reply with quote

@mouser
puoi usare questo
Code:
sed -re 's|-[0-9]+[^-]*(-r[0-9]+)?$||'

funziona con tutti gli ebuild in portage e ci mette un decimo del tempo rispetto alla versione in python
_________________
When all else fails, read the instructions.
Back to top
View user's profile Send private message
mouser
Veteran
Veteran


Joined: 10 Aug 2004
Posts: 1419
Location: Milano

PostPosted: Wed Jan 24, 2007 4:23 pm    Post subject: Reply with quote

makoomba wrote:
@mouser
puoi usare questo
Code:
sed -re 's|-[0-9]+[^-]*(-r[0-9]+)?$||'

funziona con tutti gli ebuild in portage e ci mette un decimo del tempo rispetto alla versione in python


PERFETTO!!!! :D :D :D :D :D

Grandissimi!!!
Ora finalmente potrò fare debugging serio prima di rilasciare il mega-super script :D

Ciriciao
mouser :wink:
Back to top
View user's profile Send private message
ProT-0-TypE
Veteran
Veteran


Joined: 20 Dec 2003
Posts: 1624
Location: Cagliari

PostPosted: Wed Jan 24, 2007 4:28 pm    Post subject: Reply with quote

scommetto che è uno script per l'unmask dei pacchetti :D
_________________
[Vuoi guadagnare navigando?]
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: Wed Jan 24, 2007 10:14 pm    Post subject: Reply with quote

Io personalmente utilizzo eix (che praticamente abbiamo tutti) in questo modo:
Code:
set -- $(eix --format \<category\>/\<name\>  -e ${1}); echo $1
Ovviamente, mi sono fatto un piccolo scriptino. Funziona (per forza) con qualsiasi nome di pacchetto. Io lo uso spesso chiedendogli solo il nome esatto del pacchetto:
Code:
searchatom sed

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
mouser
Veteran
Veteran


Joined: 10 Aug 2004
Posts: 1419
Location: Milano

PostPosted: Thu Jan 25, 2007 8:17 am    Post subject: Reply with quote

[OT]
ProT-0-TypE wrote:
scommetto che è uno script per l'unmask dei pacchetti :D

Sei lontano, ma ti strabiliero (ora me la tiro, pensa alla figura quando lo rilascio :roll:)
[/OT]

Ciriciao
mouser :wink:
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 25, 2007 8:40 am    Post subject: Reply with quote

There is only one way :P
Q (chi conosce star trek sa di cosa sto parlando)
qlist -ICe "sys-apps/sed-4.1.5" (la C è opzionale, serve per non scrivere colorato)
_________________
Gentoo/Alt lead
Gentoo/*BSD and Gentoo/FreeBSD deputy lead
Paludis contributor
Back to top
View user's profile Send private message
lucapost
Veteran
Veteran


Joined: 24 Nov 2005
Posts: 1419
Location: <ud|me|ts> - Italy

PostPosted: Tue Jun 24, 2008 3:19 pm    Post subject: Reply with quote

Code:
#> time eix --only-names -I |grep real

real    0m0.184s
user    0m0.151s
sys     0m0.030s


Code:
jarod:~
#> time qlist -Ie |grep real

real    0m0.016s
user    0m0.010s
sys     0m0.008s


ed io che pensavo che eix non lo batte nessuno :cry:
_________________
LP
Back to top
View user's profile Send private message
Kernel78
Moderator
Moderator


Joined: 24 Jun 2005
Posts: 3654

PostPosted: Tue Jun 24, 2008 5:52 pm    Post subject: Reply with quote

lucapost wrote:
ed io che pensavo che eix non lo batte nessuno :cry:

"battesse", non "batte" ...

Sono due programmi simili ma complementari; eix fornisce la descrizione, il sito web ecc ecc, mentre qlist punta a fornire i nomi dei file forniti da un pacchetto, paragonarli è come paragonare un affettato a un gelato, entrambi alimenti ma ben diversi tra di loro.

In ogni caso non è una gara, se scopri un sw che ti offre una funzionalità con dei bonus rispetto a quello che usi attualmente dovresti essere felice per la scoperta :wink:
_________________
Le tre grandi virtù di un programmatore: pigrizia, impazienza e arroganza. (Larry Wall).
Prima di postare un file togli i commenti con
Code:
grep -vE '(^[[:space:]]*($|(#|!|;|//)))'
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
Goto page Previous  1, 2, 3
Page 3 of 3

 
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