Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[KERNEL] rimuovere installazione kernel gentoo
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
MonsterMord
Guru
Guru


Joined: 28 Apr 2004
Posts: 395
Location: Italy --> Forli'

PostPosted: Tue Jun 15, 2004 10:31 pm    Post subject: [KERNEL] rimuovere installazione kernel gentoo Reply with quote

Premessa: per il momento uso il kernel 2.6.X ufficiale che ho piano piano adattato alle mie macchine. Quando ci sarà il ramo 2.6.X uffciale gentoo... ci penserò.

Ora, tutte le volte che faccio un update gentoo mi vuole scaricare i sorgenti del kenrnel che non uso:
Code:
emerge -uUpv world
...
[ebuild  N    ] sys-kernel/gentoo-sources-2.4.25-r4  -build  31,488 kB
...


Questo mi da fastidio perchè mi devo scaricare 31Mb, ne occupo 6 volte tanto sul disco e non me ne faccio nulla.
Come faccio ad informare gentoo che non mi deve scaricare i sorgenti del kernel?
_________________
Gentoo GNU/Linux on DELL Inspiron 8500
Back to top
View user's profile Send private message
solka
Apprentice
Apprentice


Joined: 25 Jun 2003
Posts: 287
Location: Torino - ITA

PostPosted: Tue Jun 15, 2004 10:35 pm    Post subject: Reply with quote

Se per ramo ufficiale gentoo intendi il Kernel con le patch di Gentoo, bhè esiste già...sono i gentoo-dev-sources...

Per il tuo problema, hai provato a lanciare

Code:

emerge -C gentoo-sources


Se ti fa scaricare dei nuovi sorgenti è perchè hai una versione precedente di quel pacchetto...
Ciao
_________________
"The only reason of the man's sadness
is that he can't stay peacefully in his room."

Blaise Pascal
Back to top
View user's profile Send private message
xchris
Advocate
Advocate


Joined: 10 Jul 2003
Posts: 2824

PostPosted: Tue Jun 15, 2004 10:46 pm    Post subject: Reply with quote

solka wrote:


Se ti fa scaricare dei nuovi sorgenti è perchè hai una versione precedente di quel pacchetto...
Ciao


uhmm

e perche' indica che e' N (new)?

mi sa di dipendenza...

per la cronaca ho lo stesso pb ma per pigrizia (e poco tempo) non mi sono messo ad indagare :)

ciao
_________________
while True:Gentoo()
Back to top
View user's profile Send private message
xchris
Advocate
Advocate


Joined: 10 Jul 2003
Posts: 2824

PostPosted: Tue Jun 15, 2004 10:54 pm    Post subject: Reply with quote

per ragioni che non vi sto a spiegare :evil: il mio world file e' andato a zero.

appena riemerso development-sources il vecchio kernel non ha + rotto le scatole :)

prova a vedere se hai un problema del genere.

ciao


P.S.:come azzerare il world file.... fare un backup su hd ext quando non e' montato... arrivare al 100% su / e avere un bel cron al 9:00 per un emerge sync... grrrrr
_________________
while True:Gentoo()
Back to top
View user's profile Send private message
solka
Apprentice
Apprentice


Joined: 25 Jun 2003
Posts: 287
Location: Torino - ITA

PostPosted: Tue Jun 15, 2004 11:05 pm    Post subject: Reply with quote

xchris wrote:

uhmm

e perche' indica che e' N (new)?

mi sa di dipendenza...


Perchè gli ebuild dei sorgenti dei kernel come ad esempio di gcc utilizzano slot diversi.
_________________
"The only reason of the man's sadness
is that he can't stay peacefully in his room."

Blaise Pascal
Back to top
View user's profile Send private message
xchris
Advocate
Advocate


Joined: 10 Jul 2003
Posts: 2824

PostPosted: Tue Jun 15, 2004 11:11 pm    Post subject: Reply with quote

nel caso in cui avesse avuto un kernel della serie gentoo-sources vecchio non ci sarebbe stata la N ma la U.

io ipotizzo la mancanza di un kernel nel worldfile.

ciao
_________________
while True:Gentoo()
Back to top
View user's profile Send private message
solka
Apprentice
Apprentice


Joined: 25 Jun 2003
Posts: 287
Location: Torino - ITA

PostPosted: Tue Jun 15, 2004 11:21 pm    Post subject: Reply with quote

No assolutamente.
Proprio perchè i vari ebuild utilizzano degli slot diversi non è presente la U, ma la N.
Io stesso ho fatto la prova del nove, eseguire l'emerge di un vecchio sorgente gentoo-sources e poi dare emerge -p gentoo-sources.
Cmq si vede anche dall'ebuild, infatti:

settaggio slot degli ebuild dei kernel
Code:
OKV="`echo ${PV}|sed -e 's:^\([0-9]\+\.[0-9]\+\.[0-9]\+\).*:\1:'`"
EXTRAVERSION="-${PN/-*/}"
[ ! "${PR}" == "r0" ] && EXTRAVERSION="${EXTRAVERSION}-${PR}"
KV="${OKV}${EXTRAVERSION}"

<cut>

SLOT="${KV}"


Invece di un programma normale come gaim

Code:
cat gaim-0.75-r10.ebuild | grep SLOT
SLOT="0"
cat gaim-0.77.ebuild | grep SLOT
SLOT="0"


Dalla guida alle ebuild

Quote:
Portage supporta le varie versioni dello stesso pacchetto installato. Se volete, avendo installati sia GCC 2.95 che GCC 3.2, potete specificare lo SLOT in ogni ebuild. Qui possiamo settare lo SLOT di GCC 2.95 a 2 mentre possiamo settare lo SLOT di GCC 3.2 a 3.
Note: Usando 0 come valore di SLOT significa che quel pacchetto ha 1 solo SLOT da settare (in altre parole, quel pacchetto non è SLOTable).


Ciao!
_________________
"The only reason of the man's sadness
is that he can't stay peacefully in his room."

Blaise Pascal
Back to top
View user's profile Send private message
xchris
Advocate
Advocate


Joined: 10 Jul 2003
Posts: 2824

PostPosted: Tue Jun 15, 2004 11:23 pm    Post subject: Reply with quote

ho controllato pure io :)


/me che ha detto la ca??ata del 1 una di notte :)

grazie per il chiarimento :)
ciao
_________________
while True:Gentoo()
Back to top
View user's profile Send private message
solka
Apprentice
Apprentice


Joined: 25 Jun 2003
Posts: 287
Location: Torino - ITA

PostPosted: Tue Jun 15, 2004 11:23 pm    Post subject: Reply with quote

Figurati :D
Cmq per rigenerare il world file basta che lanci

Code:

regenworld

_________________
"The only reason of the man's sadness
is that he can't stay peacefully in his room."

Blaise Pascal
Back to top
View user's profile Send private message
xchris
Advocate
Advocate


Joined: 10 Jul 2003
Posts: 2824

PostPosted: Tue Jun 15, 2004 11:30 pm    Post subject: Reply with quote

solka wrote:
Figurati :D
Cmq per rigenerare il world file basta che lanci

Code:

regenworld


bhe.. avevo il backup :D (visto che mi era costato il casino vario)
ciao
_________________
while True:Gentoo()
Back to top
View user's profile Send private message
xchris
Advocate
Advocate


Joined: 10 Jul 2003
Posts: 2824

PostPosted: Tue Jun 15, 2004 11:39 pm    Post subject: Reply with quote

a proposito....

ho provato anche regenworld (mai usato per fortuna) ma ricreando il world file mi ha tirato su il mondo (non e' una battuta :) )

facendo un emerge -Dup world vuole riemergermi vecchi cadevari che ho rimosso molto tempo fa (solo con SLOT 0)

o mi sfugge qc o non e' del tutto affidabile.

Non e' un problema perche' cmq il mio bel world file e' salvo :)

ciao
_________________
while True:Gentoo()
Back to top
View user's profile Send private message
solka
Apprentice
Apprentice


Joined: 25 Jun 2003
Posts: 287
Location: Torino - ITA

PostPosted: Tue Jun 15, 2004 11:44 pm    Post subject: Reply with quote

Da quel che ho capito scorrendo un attimino il codice di regenworld, anche se non me ne intendo di python, sembra che regenworld tragga i nomi dei pacchetti installati dal log di emerge...o hai l'emerge.log un po' sballato oppure non è molto affidabile :D
_________________
"The only reason of the man's sadness
is that he can't stay peacefully in his room."

Blaise Pascal
Back to top
View user's profile Send private message
xchris
Advocate
Advocate


Joined: 10 Jul 2003
Posts: 2824

PostPosted: Tue Jun 15, 2004 11:49 pm    Post subject: Reply with quote

controllero' in modo un po' piu' approfondito.. ma a occhio fa qualche pasticcio. (ad xfce l'ho rimosso 2 mesi fa... mah..)
ciauz
_________________
while True:Gentoo()
Back to top
View user's profile Send private message
HunterD
Apprentice
Apprentice


Joined: 10 Mar 2004
Posts: 165

PostPosted: Wed Jun 16, 2004 6:38 am    Post subject: Reply with quote

Scusate ma anche io ho il problema dell'emerge gentoo-sources , ma alla fine non ho capito come risolverlo :?: , anche io ho la flag settata a N ! basta quindi un emerge -C ??
Back to top
View user's profile Send private message
randomaze
Bodhisattva
Bodhisattva


Joined: 21 Oct 2003
Posts: 9985

PostPosted: Wed Jun 16, 2004 6:44 am    Post subject: Reply with quote

HunterD wrote:
Scusate ma anche io ho il problema dell'emerge gentoo-sources , ma alla fine non ho capito come risolverlo :?: , anche io ho la flag settata a N ! basta quindi un emerge -C ??


Forse, altrimenti potresti fare un inject oppure mettere il kernel 2.4.x che attualmente hai installato in /etc/portage/package.mask
_________________
Ciao da me!
Back to top
View user's profile Send private message
solka
Apprentice
Apprentice


Joined: 25 Jun 2003
Posts: 287
Location: Torino - ITA

PostPosted: Wed Jun 16, 2004 7:33 am    Post subject: Reply with quote

HunterD wrote:
Scusate ma anche io ho il problema dell'emerge gentoo-sources , ma alla fine non ho capito come risolverlo :?: , anche io ho la flag settata a N ! basta quindi un emerge -C ??


Sì, emerge -C gentoo-sources.
_________________
"The only reason of the man's sadness
is that he can't stay peacefully in his room."

Blaise Pascal
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31470
Location: here

PostPosted: Wed Jun 16, 2004 7:38 am    Post subject: Reply with quote

solka wrote:
Sì, emerge -C gentoo-sources.

E se hai piu' versioni e ne vuoi togliere una specifica allora
Code:
# emerge -C gentoo-sources-versione

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
MonsterMord
Guru
Guru


Joined: 28 Apr 2004
Posts: 395
Location: Italy --> Forli'

PostPosted: Wed Jun 16, 2004 7:57 am    Post subject: Reply with quote

Niente da fare, anche rimuovendo tutti i pacchetti cerca di installarmelo.
La cosa che non capisco è come mai mi mette sempre una versione nuova e non aggiorna la vecchia.
In /usr/src ho il kernel gentoo-r2 gentoo-r3 e ora ci vuole mettere anche -r4.
Se va avanti di questo passo fra un mese devo comperare un altro disco fisso :roll: .
Boh, proverò a mascherare il pacchetto.
_________________
Gentoo GNU/Linux on DELL Inspiron 8500
Back to top
View user's profile Send private message
randomaze
Bodhisattva
Bodhisattva


Joined: 21 Oct 2003
Posts: 9985

PostPosted: Wed Jun 16, 2004 8:01 am    Post subject: Reply with quote

MonsterMord wrote:
La cosa che non capisco è come mai mi mette sempre una versione nuova e non aggiorna la vecchia.


Il kernel é un qualcosa di molto particolare e, giustamente, va gestito in modo particolare, infatti tu potresti voler installare (per test) la nuova versione e poi decidere che era meglio la vecchia, ma in quel caso dovresti riscaricarla.... ricompilarla, ma i moduli che hai potrebbero essere incompatibili...
_________________
Ciao da me!
Back to top
View user's profile Send private message
solka
Apprentice
Apprentice


Joined: 25 Jun 2003
Posts: 287
Location: Torino - ITA

PostPosted: Wed Jun 16, 2004 8:06 am    Post subject: Reply with quote

MonsterMord wrote:

In /usr/src ho il kernel gentoo-r2 gentoo-r3 e ora ci vuole mettere anche -r4.


È per questo che tenta di aggiornartelo, perchè hai dei vecchi sorgenti...se sicuro di aver rimosso i pacchetti corretti di quel kernel?
_________________
"The only reason of the man's sadness
is that he can't stay peacefully in his room."

Blaise Pascal
Back to top
View user's profile Send private message
codadilupo
Advocate
Advocate


Joined: 05 Aug 2003
Posts: 3135

PostPosted: Wed Jun 16, 2004 8:34 am    Post subject: Reply with quote

é lo stesso problema che ho avuto io qualche giorno fa.
rova a dare
Code:
# emerge -UDpv --tree world
e cerca di capire qual'e' il pacchetto che ti chiede il kenrel.
Io ho scoperto che erano due pacchetti (emu10k1 e acpid) che rompevano le scatole... una volta sommersi quelli (emu10k1 non serve piu', perché é specifico per il ramo 2.4, acpid devo ancora capire come mai abbia queste pretese) non ho piu' avuto problemi.
Altra prova che puoi fare, é un bel # qpkg -I -v gentoo-sources per capire se effettivamente é disinstallato oppure no, se non lo é
Code:
# emerege -C gentoo-sources
e daccapo con
Code:
# emerge -UDpv --tree world
e
Code:
# qkpg -I -v gentoo-sources
;-)

Coda
Back to top
View user's profile Send private message
xchris
Advocate
Advocate


Joined: 10 Jul 2003
Posts: 2824

PostPosted: Wed Jun 16, 2004 8:43 am    Post subject: Reply with quote

e per essere sicuro di non avere il mio stesso problema:

Code:

grep kernel /var/cache/edb/world



per la cronaca... regenworld non ha fatto idiozie :D
Ero io che ero in avaria ieri notte! ;)

ciao
_________________
while True:Gentoo()
Back to top
View user's profile Send private message
MonsterMord
Guru
Guru


Joined: 28 Apr 2004
Posts: 395
Location: Italy --> Forli'

PostPosted: Wed Jun 16, 2004 10:29 am    Post subject: Reply with quote

Code:

# grep kernel /var/cache/edb/world
# emerge -C gentoo-sources

--- Couldn't find gentoo-sources to unmerge.

>>> unmerge: No packages selected for removal.
# emerge -UDpv --tree world
...
[ebuild  N    ]     sys-kernel/gentoo-sources-2.4.25-r4  -build  31,488 kB
...


Se non ricordo male fin dal bootstrap della fase 1-->2 mi scaricò dei sorgenti del kernel, forse addirittura il 2.4.21

L'unica cosa che mi è rimasta da fare è il mascheramento, o no?

Ora vi lascio, mi vado a compilare il 2.6.7 ;-)
_________________
Gentoo GNU/Linux on DELL Inspiron 8500
Back to top
View user's profile Send private message
MonsterMord
Guru
Guru


Joined: 28 Apr 2004
Posts: 395
Location: Italy --> Forli'

PostPosted: Wed Jun 16, 2004 10:53 am    Post subject: Reply with quote

scusate la stupidità, non sono capace nemmeno di leggere l'output di emerge :oops:
Code:

emerge -uUDpvt world

These are the packages that I would merge, in reverse order:

Calculating world dependencies ...done!
[nomerge      ] kde-base/kde-i18n-3.2.2
[nomerge      ]  kde-base/kdebase-3.2.2  +cups +encode +java -ldap +motif +opengl +pam +samba +ssl
[nomerge      ]   kde-base/kdelibs-3.2.2-r1  +alsa +cups -doc -ipv6 -ldap +ssl
[nomerge      ]    media-sound/alsa-driver-1.0.5  +oss
[ebuild  N    ]     sys-kernel/gentoo-sources-2.4.25-r4  -build  31,488 kB


Va beh, lo maschero e via, giustamente gli alsa hanno bisogno dei sorgenti del kenel. Per kde non saprei che dire :roll:
_________________
Gentoo GNU/Linux on DELL Inspiron 8500
Back to top
View user's profile Send private message
Raffo
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1019
Location: Berlin

PostPosted: Wed Jun 16, 2004 10:57 am    Post subject: Reply with quote

scusatemi se sono leggermente ot, ma quando ho fatto emerge world l'altro giorno mi diceva che avrebbe aggiornato anche il kernel (alla vers 2.6.6) ma mi dice ancora che ho installato il 2.6.5...tutto normale??
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
Goto page 1, 2  Next
Page 1 of 2

 
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