View previous topic :: View next topic |
Author |
Message |
MonsterMord Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Austin_Powers/Austin_Powers_-_Dr_Evil.gif)
Joined: 28 Apr 2004 Posts: 395 Location: Italy --> Forli'
|
Posted: Tue Jun 15, 2004 10:31 pm Post subject: [KERNEL] rimuovere installazione kernel gentoo |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
solka Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/16896308303efc5d2f28ed1.gif)
Joined: 25 Jun 2003 Posts: 287 Location: Torino - ITA
|
Posted: Tue Jun 15, 2004 10:35 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
xchris Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/212070142342d3867489e82.jpg)
Joined: 10 Jul 2003 Posts: 2824
|
Posted: Tue Jun 15, 2004 10:46 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
xchris Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/212070142342d3867489e82.jpg)
Joined: 10 Jul 2003 Posts: 2824
|
Posted: Tue Jun 15, 2004 10:54 pm Post subject: |
|
|
per ragioni che non vi sto a spiegare 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 |
|
![](templates/gentoo/images/spacer.gif) |
solka Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/16896308303efc5d2f28ed1.gif)
Joined: 25 Jun 2003 Posts: 287 Location: Torino - ITA
|
Posted: Tue Jun 15, 2004 11:05 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
xchris Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/212070142342d3867489e82.jpg)
Joined: 10 Jul 2003 Posts: 2824
|
Posted: Tue Jun 15, 2004 11:11 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
solka Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/16896308303efc5d2f28ed1.gif)
Joined: 25 Jun 2003 Posts: 287 Location: Torino - ITA
|
Posted: Tue Jun 15, 2004 11:21 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
xchris Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/212070142342d3867489e82.jpg)
Joined: 10 Jul 2003 Posts: 2824
|
Posted: Tue Jun 15, 2004 11:23 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
solka Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/16896308303efc5d2f28ed1.gif)
Joined: 25 Jun 2003 Posts: 287 Location: Torino - ITA
|
Posted: Tue Jun 15, 2004 11:23 pm Post subject: |
|
|
Figurati
Cmq per rigenerare il world file basta che lanci
_________________ "The only reason of the man's sadness
is that he can't stay peacefully in his room."
Blaise Pascal |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
xchris Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/212070142342d3867489e82.jpg)
Joined: 10 Jul 2003 Posts: 2824
|
Posted: Tue Jun 15, 2004 11:30 pm Post subject: |
|
|
solka wrote: | Figurati
Cmq per rigenerare il world file basta che lanci
|
bhe.. avevo il backup (visto che mi era costato il casino vario)
ciao _________________ while True:Gentoo() |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
xchris Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/212070142342d3867489e82.jpg)
Joined: 10 Jul 2003 Posts: 2824
|
Posted: Tue Jun 15, 2004 11:39 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
solka Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/16896308303efc5d2f28ed1.gif)
Joined: 25 Jun 2003 Posts: 287 Location: Torino - ITA
|
Posted: Tue Jun 15, 2004 11:44 pm Post subject: |
|
|
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 ![Very Happy :D](images/smiles/icon_biggrin.gif) _________________ "The only reason of the man's sadness
is that he can't stay peacefully in his room."
Blaise Pascal |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
xchris Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/212070142342d3867489e82.jpg)
Joined: 10 Jul 2003 Posts: 2824
|
Posted: Tue Jun 15, 2004 11:49 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
HunterD Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/161224119241615072ef404.gif)
Joined: 10 Mar 2004 Posts: 165
|
Posted: Wed Jun 16, 2004 6:38 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
randomaze Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/191195238462262e08ea92.jpg)
Joined: 21 Oct 2003 Posts: 9985
|
Posted: Wed Jun 16, 2004 6:44 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
solka Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/16896308303efc5d2f28ed1.gif)
Joined: 25 Jun 2003 Posts: 287 Location: Torino - ITA
|
Posted: Wed Jun 16, 2004 7:33 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
fedeliallalinea Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/161653968057192eb39329f.jpg)
Joined: 08 Mar 2003 Posts: 31470 Location: here
|
Posted: Wed Jun 16, 2004 7:38 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
MonsterMord Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Austin_Powers/Austin_Powers_-_Dr_Evil.gif)
Joined: 28 Apr 2004 Posts: 395 Location: Italy --> Forli'
|
Posted: Wed Jun 16, 2004 7:57 am Post subject: |
|
|
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 .
Boh, proverò a mascherare il pacchetto. _________________ Gentoo GNU/Linux on DELL Inspiron 8500 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
randomaze Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/191195238462262e08ea92.jpg)
Joined: 21 Oct 2003 Posts: 9985
|
Posted: Wed Jun 16, 2004 8:01 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
solka Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/16896308303efc5d2f28ed1.gif)
Joined: 25 Jun 2003 Posts: 287 Location: Torino - ITA
|
Posted: Wed Jun 16, 2004 8:06 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
codadilupo Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 05 Aug 2003 Posts: 3135
|
Posted: Wed Jun 16, 2004 8:34 am Post subject: |
|
|
é 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 |
|
![](templates/gentoo/images/spacer.gif) |
xchris Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/212070142342d3867489e82.jpg)
Joined: 10 Jul 2003 Posts: 2824
|
Posted: Wed Jun 16, 2004 8:43 am Post subject: |
|
|
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
Ero io che ero in avaria ieri notte!
ciao _________________ while True:Gentoo() |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
MonsterMord Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Austin_Powers/Austin_Powers_-_Dr_Evil.gif)
Joined: 28 Apr 2004 Posts: 395 Location: Italy --> Forli'
|
Posted: Wed Jun 16, 2004 10:29 am Post subject: |
|
|
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 ![Wink ;-)](images/smiles/icon_wink.gif) _________________ Gentoo GNU/Linux on DELL Inspiron 8500 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
MonsterMord Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Austin_Powers/Austin_Powers_-_Dr_Evil.gif)
Joined: 28 Apr 2004 Posts: 395 Location: Italy --> Forli'
|
Posted: Wed Jun 16, 2004 10:53 am Post subject: |
|
|
scusate la stupidità, non sono capace nemmeno di leggere l'output di emerge
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 ![Rolling Eyes :roll:](images/smiles/icon_rolleyes.gif) _________________ Gentoo GNU/Linux on DELL Inspiron 8500 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Raffo Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/gallery/Zelda/Zelda_-_Gannondorf.jpg)
Joined: 23 Apr 2004 Posts: 1019 Location: Berlin
|
Posted: Wed Jun 16, 2004 10:57 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|