Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
come installare i binari con emerge? [risolto]
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
bi-andrea
Apprentice
Apprentice


Joined: 09 Mar 2010
Posts: 171
Location: cesenatico

PostPosted: Mon Feb 20, 2012 1:18 pm    Post subject: come installare i binari con emerge? [risolto] Reply with quote

Chiedo come si nstallano i binari creati da emerge, perchè ho visto che li crea nella cartella
Code:
/usr/portage/package

però non so come installarli e sono sotto formato, è giusto a titolo informativo per me
Quote:
*.tbz2


li creo digitando
Quote:
emerge -B <nome pachetto>


crea i binari, ma installa dal sorgente
Code:
emerge -b <nome pachetto>

_________________
Quando arrivi a Linux è un trauma, abituati a Windows, quando arrivi a Gentoo è uno spavento col brivido , però quando lo capisci sei uscito dall'università "GNU/Linux" ;)


Last edited by bi-andrea on Thu Mar 08, 2012 9:27 pm; edited 2 times in total
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: Mon Feb 20, 2012 1:43 pm    Post subject: Reply with quote

man emerge wrote:
--getbinpkg [ y | n ] (-g short option) Using the server and location defined in PORTAGE_BINHOST (see make.conf(5)), portage will download the information from each binary package found and it will use that information to help build the dependency list. This option implies -k.
(Use -gK for binary-only merging.)
--getbinpkgonly [ y | n ] (-G short option) This option is identical to -g, as above, except binaries from the remote server are preferred over local packages if they are not identical.
--usepkg [ y | n ] (-k short option) Tells emerge to use binary packages (from $PKGDIR) if they are available, thus possibly avoiding some time-consuming compiles. This option is useful for CD installs; you can export PKGDIR=/mnt/cdrom/packages and then use this option to have emerge "pull" binary packages from the CD in order to satisfy dependencies.
--usepkgonly [ y | n ] (-K short option) Tells emerge to only use binary packages (from $PKGDIR). All the binary packages must be available at the time of dependency calculation or emerge will simply abort. Portage does not use $PORTDIR when calculating dependency information so all masking information is ignored.
esempio:
emerge -1gK app-office/libreoffice

Ulteriori dettagli nel subforum documentazione
_________________
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
bi-andrea
Apprentice
Apprentice


Joined: 09 Mar 2010
Posts: 171
Location: cesenatico

PostPosted: Thu Feb 23, 2012 12:44 pm    Post subject: Reply with quote

ho guardato nei sotto forum e li ho trovati utili, sostanzialmente sarebbe
Code:
emerge -K <programma>

così cerca in /usr/portage/packages
potrebbe andar bene un discorso di creare tutti i binari di tutto il world installato con magar la possibilità di installarlo in un'altro pc oppure come backup risparmiando tempo nella compilazione
_________________
Quando arrivi a Linux è un trauma, abituati a Windows, quando arrivi a Gentoo è uno spavento col brivido , però quando lo capisci sei uscito dall'università "GNU/Linux" ;)
Back to top
View user's profile Send private message
bi-andrea
Apprentice
Apprentice


Joined: 09 Mar 2010
Posts: 171
Location: cesenatico

PostPosted: Tue Mar 06, 2012 11:05 pm    Post subject: Reply with quote

ho trovato interessante il discorso di creare i binari del sistema che si sono installarli in un pc meno prestazionale tipo un mio pc PII (non ricordo a quanti Hz, ma non molti) e ho proseguito così
Quote:
emerge rsync
catalyst -C target=snapshot version_stamp=my_date [emerge catalyst]

Quote:
emerge -e --buildpkgonly world

per world non mi creava i binari e ho sistemato sia in /etc/make.conf le flag use che /etc/portage/package.use
Quote:
emerge --deep --newuse world

una volta che ho sistemato i file di configurazione rifaccio
Quote:
emerge -e --buildpkgonly world


ora ho tutti i binari in
Quote:
/usr/portage/packages

il snapshot creato non so dove è stato posizionato però.

Se ho capito bene con un stage3 messo nel pc il snapshot creato messo in /usr e i binari in /usr/portage/package se digito

Quote:
emerge -K <quello che voglio>


dovrei aver installato grazie ai binari un sistema simile al mio pc attuale, giusto?
_________________
Quando arrivi a Linux è un trauma, abituati a Windows, quando arrivi a Gentoo è uno spavento col brivido , però quando lo capisci sei uscito dall'università "GNU/Linux" ;)
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: Fri Mar 09, 2012 10:32 am    Post subject: Reply with quote

-OK non solo -K per alcuni (in particolare i pacchetti che dipendono da opzioni del kernel)

Se li vuoi già pronti per l'uso è meglio usare un chroot e quickpkg. -B va bene se provi a clonare su altra ottimizzazione e simili.
_________________
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
bi-andrea
Apprentice
Apprentice


Joined: 09 Mar 2010
Posts: 171
Location: cesenatico

PostPosted: Thu Mar 29, 2012 10:05 pm    Post subject: Reply with quote

Ieri ho installato Gentoo sul PII, dunque ho fatto così:

Quote:
scompattamento l'ultimo stage3, perchè prima di creare i binari nell'altro pc lo avevo aggionato, poi ho copiato la cartella /usr/potage senza tarball in /usr/portage/distfiles, ma con i binari in /usr/portage/packages
e make.conf e i package.*

fatto questo ho iniziato ad installare i binari, però mi chiedeva la variabile in make.conf,
Quote:
PORTAGE_BINHOST
digitando
Quote:
emerge -gK <quello che voglio>


in pratica un mirror da dove scaricarli, io non ne conosco, però ho i miei creati precedentemente e guardando devo installarli dicitando così
Quote:
emerge --usepkg --getbinpkg <quello che voglio>


Quote:
--usepkg

serve proprio per installare i propri binari
Quote:
--getbinpkg

per scaricarli e creare i binari se c'è bisogno e infatti qualcuno l'ha dovuto compilare.

Unico problema è OpenOffice, anche da binario, che tra l'altro si trova nei mirror dei sorgenti, mi si blocca il pc, se lo scompatto dal binario creato dall'altro pc, lui funzionerebbe anche se non è stato aggiunto nel database di portage?
_________________
Quando arrivi a Linux è un trauma, abituati a Windows, quando arrivi a Gentoo è uno spavento col brivido , però quando lo capisci sei uscito dall'università "GNU/Linux" ;)
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 Mar 31, 2012 3:24 am    Post subject: Reply with quote

segreteria telefonica wrote:
djinn Z risulta disperso su una spiaggia assolata...
:mrgreen:



documentati su emerge --root= , OOo o libreoffice sono pachidermi e potresti avere problemi a scompattare un tar di quelle dimensioni. :wink:
_________________
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
fbcyborg
Advocate
Advocate


Joined: 16 Oct 2005
Posts: 3056
Location: ROMA

PostPosted: Sat Mar 31, 2012 8:54 am    Post subject: Reply with quote

LOL, si notava una certa calma piatta nel forum! :P
_________________
[HOWTO] Come criptare la /home usando cryptsetup e luks
[HOWTO] Abilitare il supporto al dom0 XEN su kernel 3.X
Help answer the unanswered
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 Mar 31, 2012 2:29 pm    Post subject: Reply with quote

infatti quindi, per oggi, ho pensato bene di farvi una visitina tra una la spiaggia ed i massaggi.
_________________
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
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