Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Risolto] Ho distrutto tutto il portage! rm -fr /var/db/
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
Ska`
n00b
n00b


Joined: 25 Sep 2004
Posts: 74

PostPosted: Sat Dec 29, 2007 5:08 pm    Post subject: [Risolto] Ho distrutto tutto il portage! rm -fr /var/db/ Reply with quote

Facendo la consueta manutenzione mi e' scappato un comando decisamente indesiderato, ovvero

Code:
rm -fr /var/db/


Ora praticamente portage vorrebbe riemergere tutti i pacchetti, perche' non sa che in realta' ci sono gia' tutti...ho cercato in man emerge ma non ho visto nulla, qualcuno mi sa dire se ho qualche speranza di recuperare il sistema? Stava per compiere due anni...


Last edited by Ska` on Sun Dec 30, 2007 2:31 am; edited 2 times in total
Back to top
View user's profile Send private message
Flameeyes
Retired Dev
Retired Dev


Joined: 30 Mar 2005
Posts: 189
Location: London, Europe

PostPosted: Sat Dec 29, 2007 5:41 pm    Post subject: Reply with quote

emerge world e qualche giorno di ferie è il metodo più diretto.
_________________
You want to know what I'm working on right now? Just follow my blog.
Back to top
View user's profile Send private message
Ska`
n00b
n00b


Joined: 25 Sep 2004
Posts: 74

PostPosted: Sat Dec 29, 2007 6:30 pm    Post subject: Reply with quote

Ah.....bene :D Immagino dunque che non esista alcuna opzione particolare per far ricostruire solo quegli "stupidi" file di testo...
Back to top
View user's profile Send private message
bender86
Guru
Guru


Joined: 18 Mar 2005
Posts: 484

PostPosted: Sat Dec 29, 2007 7:22 pm    Post subject: Reply with quote

Potresti provare così: fai un emerge -p world e ti segni tutti i pacchetti.
Poi dai emerge --noreplace* --oneshot pacchetto per ogni pacchetto.
Credo che si possa fare anche un po' alla volta, tanto con il primo comando non considera i pacchetti presenti in /var/db/. Oppure direttamente un emerge --noreplace --emptytree world.
Comunque sono ipotesi, non sono davvero sicuro che questo metodo funzioni.

* Non ho gentoo sottomano, dai un occhiata a man emerge per vedere se l'opzione è proprio --noreplace: dovrebbe far finta di installare, ma in realtà non modifica il sistema.
Back to top
View user's profile Send private message
djinnZ
Advocate
Advocate


Joined: 02 Nov 2006
Posts: 4831
Location: somewhere in L.O.S.

PostPosted: Sat Dec 29, 2007 7:32 pm    Post subject: Reply with quote

solo se hai creato i binari emerge --noreplace -1K va bene, --noreplace serve per aggiungerev a world un pacchetto installato.

@flameyes: per curiosità, vengono rielaborate le dipendenze con --noreplace?
_________________
scita et risus abundant in ore stultorum sed etiam semper severi insani sunt:wink:
mala tempora currunt...mater stultorum semper pregna est :evil:
Murpy'sLaw:If anything can go wrong, it will - O'Toole's Corollary:Murphy was an optimist :wink:
Back to top
View user's profile Send private message
Ska`
n00b
n00b


Joined: 25 Sep 2004
Posts: 74

PostPosted: Sat Dec 29, 2007 8:41 pm    Post subject: Reply with quote

Facendo emerge -p world da' errore (circular dependencies) e piu' che altro lo da' con qualsiasi emerge se non metto --nodeps...quello che mi servirebbe e' qualcosa che salti la compilazione vera e propria e ricrei solamente /var/db/ e che non penso esista :(

@bender86: purtroppo --noreplace si basa proprio su /var/db/ che a quanto mi pare di aver capito e' la dir in cui portage si segna e cerca i dati sui pacchetti installati!

Grazie a tutti dell'aiuto :)

EDIT: leggendo velocemente man portage ho trovato che la dir precisamente e' /var/db/pkg/...appena avro' un po' di tempo leggero' bene tutto il man...mal che vada non avro' perso tempo perche' conoscero' un po' meglio il portage :wink:
Back to top
View user's profile Send private message
Ska`
n00b
n00b


Joined: 25 Sep 2004
Posts: 74

PostPosted: Sun Dec 30, 2007 2:30 am    Post subject: Reply with quote

Ok, ho risolto usando uno script in bash di un utente di questo forum. Pero' mi chiedo una cosa: perche' google ha trovato un sacco di thread (qui su forums.gentoo) riguardo questo argomento, mentre la ricerca del forum stesso non trova NIENTE? Non e' la prima volta che mi succede...boh
Back to top
View user's profile Send private message
Kernel78
Moderator
Moderator


Joined: 24 Jun 2005
Posts: 3654

PostPosted: Sun Dec 30, 2007 8:11 am    Post subject: Reply with quote

Ska` wrote:
Ok, ho risolto usando uno script in bash di un utente di questo forum. Pero' mi chiedo una cosa: perche' google ha trovato un sacco di thread (qui su forums.gentoo) riguardo questo argomento, mentre la ricerca del forum stesso non trova NIENTE? Non e' la prima volta che mi succede...boh

dipende da come fai la ricerca, c'è una discussione sticky sul argomento
_________________
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
Ska`
n00b
n00b


Joined: 25 Sep 2004
Posts: 74

PostPosted: Sun Dec 30, 2007 11:38 am    Post subject: Reply with quote

A me non dice nulla ne' con /var/db/pkg ne' con var db pkg...unico forum al mondo in cui non riesco a fare una ricerca, vabbe' c'e' san Google... :wink:
Back to top
View user's profile Send private message
Kernel78
Moderator
Moderator


Joined: 24 Jun 2005
Posts: 3654

PostPosted: Sun Dec 30, 2007 2:45 pm    Post subject: Reply with quote

Ska` wrote:
A me non dice nulla ne' con /var/db/pkg ne' con var db pkg...unico forum al mondo in cui non riesco a fare una ricerca, vabbe' c'e' san Google... :wink:

mi sembra che termini troppo corti vengano rimossi, se vuoi fare una ricerca globale sul forum l'unica è sfruttare google :D
_________________
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
^Sporting^
Tux's lil' helper
Tux's lil' helper


Joined: 06 Oct 2003
Posts: 131
Location: 009°11'28'' E 045°36'39'' N

PostPosted: Wed Jan 02, 2008 8:30 pm    Post subject: Reply with quote

Potresti anche spiegare come hai risolto?
Ho fatto pure io la stessa cappellata :P
Sara' colpa di un virus che c'è in giro tipo influenza e che ci fa cancellare a caso :D

Bye
Grazie in anticipo!!
Back to top
View user's profile Send private message
Ska`
n00b
n00b


Joined: 25 Sep 2004
Posts: 74

PostPosted: Thu Jul 03, 2008 1:30 pm    Post subject: Reply with quote

Non avendo la notifica via mail ho letto per caso adesso, a soli sei mesi e un giorno di distanza...scusa! Lascio il link alla discussione con cui avevo risolto, se qualcun altro capitasse qua:

https://forums.gentoo.org/viewtopic-t-513191.html
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