Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index International Gentoo Users Forum italiano (Italian) Risorse italiane (documentazione e tools)
  • Search

[TIP] de-emergere tot pacchetti in base a una keyword

Forum riservato alla documentazione in italiano.

Moderator: ago

Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
Author
Message
FonderiaDigitale
Veteran
Veteran
User avatar
Posts: 1710
Joined: Thu Nov 06, 2003 4:28 am
Location: Rome, Italy
Contact:
Contact FonderiaDigitale
Website

[TIP] de-emergere tot pacchetti in base a una keyword

  • Quote

Post by FonderiaDigitale » Wed Apr 14, 2004 12:35 am

14.4.04 : inserito nelle faq di gentoo-italia.org :)

attimo di noia... ne approfitto per postare questo piccolo snippetino che uso per togliere dai miei sistemi pacchetti in base a una determinata wildmask.

Dovete avere installato

Code: Select all

app-portage/gentoolkit
per farlo funzionare (cosa che in ogni caso caldamente consiglio).

Code: Select all

#!/bin/bash
for a in `qpkg -nc -I -v "$1"|cut -d ' ' -f1`
do
        lista="$lista $a"
done
if [ -n "$lista" ]
then
        emerge -C -av $lista
else
        echo "Spiacente, non esiste nessun pacchetto installato che corrisponda a \"$1\"."
fi

Code: Select all

chmod u+x unmergebymask
Lo scriptiello lo potete invocare con un parametro, ad es.

Code: Select all

./unmergebymask synce
Risultato (sul mio portatile):

Code: Select all

goliath root $ /usr/local/scripts/portage/unmergemask synce
 
>>> These are the packages that I would unmerge:
 
 app-pda/synce-trayicon
    selected: 0.8
   protected: none
     omitted: none
 
 app-pda/synce-dccm
    selected: 0.8.9
   protected: none
     omitted: none
 
 app-pda/synce-serial
    selected: 0.8.9
   protected: none
     omitted: none
 
 app-pda/synce-librapi2
    selected: 0.8.9
   protected: none
     omitted: none
 
 app-pda/synce-libsynce
    selected: 0.8.9
   protected: none
     omitted: none
 
 app-pda/synce-gnomevfs
    selected: 0.8
   protected: none
     omitted: none
 
>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.
 
Do you want me to unmerge these packages? [Yes/No]
Lo script vi chiede conferma prima di togliere pacchetti dal sistema (onde evitare di distruggere cose importanti).

Buon lavoro ragazzi.
Last edited by FonderiaDigitale on Thu Apr 15, 2004 4:34 am, edited 1 time in total.
Come disse un amico, i sistemisti sono un po' come gli artigiani per l'informatica :)
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 31985
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Wed Apr 14, 2004 7:37 am

Ottimo tip FonderiaDigitale.
Questions are guaranteed in life; Answers aren't.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
Post Reply
  • Print view

2 posts • Page 1 of 1

Return to “Risorse italiane (documentazione e tools)”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic