Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
elencare i pacchetti non più presenti in portage o overlay
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)
View previous topic :: View next topic  
Author Message
guerro
Guru
Guru


Joined: 21 Jun 2004
Posts: 402
Location: Brescia

PostPosted: Fri Aug 11, 2023 10:47 pm    Post subject: elencare i pacchetti non più presenti in portage o overlay Reply with quote

Ciao a tutti,
qualcuno può aiutarmi a creare uno script bash per elencare tutti i pacchetti installati (da portage e/o overlay) che non sono più presenti? Per intenderci quelli che al comando
Code:
equery l xxxxxxx
restituiscono come stato
Code:
[??] xxxxxxx
invece che
Code:
[IP ] xxxxxxx


Grazie a chiunque mi possa aiutare
_________________
(.(*. .*).)
.. G u e r r o ..
(.(.* *.).)
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30917
Location: here

PostPosted: Sat Aug 12, 2023 5:21 am    Post subject: Reply with quote

Ti basterebbe il comando equery -N l '*' | grep '\[??\]'?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
guerro
Guru
Guru


Joined: 21 Jun 2004
Posts: 402
Location: Brescia

PostPosted: Sat Aug 12, 2023 6:08 am    Post subject: Reply with quote

Grazie 1000
perfetto! :D
_________________
(.(*. .*).)
.. G u e r r o ..
(.(.* *.).)
Back to top
View user's profile Send private message
sabayonino
Veteran
Veteran


Joined: 03 Jan 2012
Posts: 1014

PostPosted: Sat Aug 12, 2023 8:44 am    Post subject: Reply with quote

ti basta creare un alias nel .bashrc dell'utente

Code:

echo "alias nopkgs=\"equery -N l '*' | grep '\[??\]'\"" >> ~/.bashrc



ogni volta che darai il comando-alias
Code:

nopkgs


otterrai il risultato voluto

a meno che non lo devi integrare con qualcos'altro

il nome dell'alias lo puoi decidere tu , occhio che non vada in conflitto con altri comandi già esistenti
_________________
LRS i586 on G.Drive
LRS x86-64 EFI on MEGA
Back to top
View user's profile Send private message
xdarma
l33t
l33t


Joined: 08 Dec 2003
Posts: 719
Location: tra veneto e friuli (italy)

PostPosted: Mon Aug 14, 2023 9:35 am    Post subject: Reply with quote

Ho un problema molto simile: non esiste uno script o un'utility che crea un repository locale e inserisce gli ebuild dei pacchetti rimossi da portage ma ancora installati?
Il problema credo sia automatizzare il recupero dell'ebuild obsoleto...
_________________
proud user of faKeDE-4.7.3 -> back to windowmaker -> moved to LXQt
Back to top
View user's profile Send private message
sabayonino
Veteran
Veteran


Joined: 03 Jan 2012
Posts: 1014

PostPosted: Mon Aug 14, 2023 10:21 am    Post subject: Reply with quote

Il problema credo diventi poi a monte se il file sorgente viene rimosso dal mirror

Tenere/creare una copia del binario e delle sue dipendenze potrebbe essere una soluzione fin quando non entreranno in conflitto con le nuoe versioni.
Oppure appoggiarsi ad una appimage
_________________
LRS i586 on G.Drive
LRS x86-64 EFI on MEGA
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30917
Location: here

PostPosted: Mon Aug 14, 2023 1:01 pm    Post subject: Reply with quote

Altre a quello da detto sabayonino solitamente prima di venire elimanato dal tree portage dovrebbe avvisare se il pacchetto è installato.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
xdarma
l33t
l33t


Joined: 08 Dec 2003
Posts: 719
Location: tra veneto e friuli (italy)

PostPosted: Mon Aug 14, 2023 2:28 pm    Post subject: Reply with quote

Tutto vero, indubbiamente, ma conservare l'ebuild del pacchetto escluso dal repository ufficiale mi sarebbe utile se modifico le USE e voglio ricompilarlo o se capita che il pacchetto venga estromesso perché manca il maintainer.

P.S.
Per curiosità ho lanciato "ls -lht /var/cache/distfiles" e il pacchetto di sorgenti più vecchio sembra essere del 1998. Doh!
_________________
proud user of faKeDE-4.7.3 -> back to windowmaker -> moved to LXQt
Back to top
View user's profile Send private message
sabayonino
Veteran
Veteran


Joined: 03 Jan 2012
Posts: 1014

PostPosted: Mon Aug 14, 2023 3:28 pm    Post subject: Reply with quote

mal che vada fai un rsync di distfiles o/e binpkgs evitando l'opzione --delete e derivati. per tenerti i sorgenti per il download in locale

e idem per la cartella degli ebuild in /var/db/repos

fatti un tarball settimanale degli ebuild installati


Code:
equery which $(qlist -vI) | tar -cvpaf $(date +%F)-ebuilds-backup.tar.gz -T -


per il peso che hanno , ne puoi fare a tonnellate oppure evitare la compressione ( togli -'opzione "a" e l'estensione della compressione)
_________________
LRS i586 on G.Drive
LRS x86-64 EFI on MEGA
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) 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