Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
flags que usam com o emerge para updates ao sistema?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Portuguese
View previous topic :: View next topic  
Author Message
Straydog
n00b
n00b


Joined: 14 Dec 2004
Posts: 19
Location: Lisbon - Portugal - EU

PostPosted: Thu Dec 16, 2004 11:28 pm    Post subject: flags que usam com o emerge para updates ao sistema? Reply with quote

Oi gente.

Já tive a dar aqui uma olhadela pelos fóruns para saber quais as flags correctas para fazer update aos pacotes mas pelo que me apercebi há algumas que são consideradas perigosas (corrijam-me se estou errado), li também a man page do emerge, mas não cheguei a nenhuma conclusão certa.

Que flags usam, ou que processo normalmente fazem para fazer update aos vossos pacotes instalados? Estava habituado a usar o slapt-get em slackware para estar sempre equivalente ao current, penso que o processo deva ser basicamente o mesmo com ligeiras alterações. Ou seja, rsync para obter a lista dos distfiles mais recentes e <um comando qualquer> para fazer os referidos updates.


De referir que de momento estou a usar ~x86, não sei se faz diferença.


Obrigado.
_________________
They both savoured the strange warm glow of being much more ignorant than ordinary people, who where only ignorant of ordinary things. (Terry Pratchett, Equal Rites)
Back to top
View user's profile Send private message
Mythos
l33t
l33t


Joined: 02 May 2004
Posts: 953
Location: Portugal

PostPosted: Thu Dec 16, 2004 11:51 pm    Post subject: Reply with quote

AMD64:

Code:
CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer -frename-registers"
CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"


Pentium3 500 mhz:

Code:
CFLAGS="-march=pentium3 -O2 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"


Isto é o que eu uso nos meus pc's cá de casa.
_________________
Best Regards,
Sérgio Henrique
Linux dune 3.0.6-gentoo #1 SMP Thu Oct 27 16:47:29 WEST 2011 x86_64 Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz GenuineIntel GNU/Linux
Back to top
View user's profile Send private message
Straydog
n00b
n00b


Joined: 14 Dec 2004
Posts: 19
Location: Lisbon - Portugal - EU

PostPosted: Fri Dec 17, 2004 6:20 pm    Post subject: Reply with quote

Hm, talvez eu não me tenha explicado bem.

A pergunta era relacionada com as flags, ou argumentos que passam ao emerge quando querem fazer update ao sistema. Como por exemplo
Code:

emerge -u world

e por aí adiante :D
_________________
They both savoured the strange warm glow of being much more ignorant than ordinary people, who where only ignorant of ordinary things. (Terry Pratchett, Equal Rites)
Back to top
View user's profile Send private message
Mythos
l33t
l33t


Joined: 02 May 2004
Posts: 953
Location: Portugal

PostPosted: Fri Dec 17, 2004 6:35 pm    Post subject: Reply with quote

com as use flags ...

vou metendo no packages.use à minha maneira
_________________
Best Regards,
Sérgio Henrique
Linux dune 3.0.6-gentoo #1 SMP Thu Oct 27 16:47:29 WEST 2011 x86_64 Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz GenuineIntel GNU/Linux
Back to top
View user's profile Send private message
Straydog
n00b
n00b


Joined: 14 Dec 2004
Posts: 19
Location: Lisbon - Portugal - EU

PostPosted: Fri Dec 17, 2004 7:24 pm    Post subject: Reply with quote

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=1#doc_chap3

É a isto que me estou a referir.
Particularmente à parte "Updating your System".
Questões tais como se o argumento --deep é recomendado ou se podemos passar sem ele, já que aumentará grandemente o tempo levado para o update, etc...

Basicamente, quais os argumentos que passas ao emerge quando queres fazer update ao sistema, como por exemplo
Code:

emerge --update world

Code:

emerge --update --deep world

Code:

emerge --update --deep --newuse world


e por aí adiante.
_________________
They both savoured the strange warm glow of being much more ignorant than ordinary people, who where only ignorant of ordinary things. (Terry Pratchett, Equal Rites)
Back to top
View user's profile Send private message
fernandotcl
Veteran
Veteran


Joined: 20 Nov 2003
Posts: 1396
Location: Sao Paulo, Brazil

PostPosted: Fri Dec 17, 2004 7:43 pm    Post subject: Reply with quote

Eu recomendo "emerge -uDpv world" pra visulizar as mudanças e "emerge -uD world" para realiza-las.

Note que -u é --update, -D é --deep, -p é --pretend e -v é --verbose.

--newuse você só vai usar quando mudar uma USE flag no make.conf. Basta rodar com "emerge --newuse world".
_________________
RTFM!
Back to top
View user's profile Send private message
Straydog
n00b
n00b


Joined: 14 Dec 2004
Posts: 19
Location: Lisbon - Portugal - EU

PostPosted: Fri Dec 17, 2004 7:47 pm    Post subject: Reply with quote

fernandotcl wrote:
Eu recomendo "emerge -uDpv world" pra visulizar as mudanças e "emerge -uD world" para realiza-las.

Note que -u é --update, -D é --deep, -p é --pretend e -v é --verbose.

--newuse você só vai usar quando mudar uma USE flag no make.conf. Basta rodar com "emerge --newuse world".


Isso mesmo! Obrigado :D Estava meio confuso mas o teu post foi esclarecedor!
_________________
They both savoured the strange warm glow of being much more ignorant than ordinary people, who where only ignorant of ordinary things. (Terry Pratchett, Equal Rites)
Back to top
View user's profile Send private message
Mythos
l33t
l33t


Joined: 02 May 2004
Posts: 953
Location: Portugal

PostPosted: Fri Dec 17, 2004 9:51 pm    Post subject: Reply with quote

isso não são flags lol...

eu faço emerge -uDav world, pre visualiza e pergunta se queres fazer o download ou não
_________________
Best Regards,
Sérgio Henrique
Linux dune 3.0.6-gentoo #1 SMP Thu Oct 27 16:47:29 WEST 2011 x86_64 Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz GenuineIntel GNU/Linux
Back to top
View user's profile Send private message
Straydog
n00b
n00b


Joined: 14 Dec 2004
Posts: 19
Location: Lisbon - Portugal - EU

PostPosted: Sat Dec 18, 2004 1:09 pm    Post subject: Reply with quote

Mythos wrote:
isso não são flags lol...


Peço desculpa então :D São argumentos que se passam ao emerge? Não estou muito habituado a este palavreado :D

Mythos wrote:
eu faço emerge -uDav world, pre visualiza e pergunta se queres fazer o download ou não


Bastante útil, obrigado :D

Cheers!
_________________
They both savoured the strange warm glow of being much more ignorant than ordinary people, who where only ignorant of ordinary things. (Terry Pratchett, Equal Rites)
Back to top
View user's profile Send private message
To
Veteran
Veteran


Joined: 12 Apr 2003
Posts: 1145
Location: Coimbra, Portugal

PostPosted: Mon Dec 20, 2004 9:08 am    Post subject: Reply with quote

Eu vou sempre com um emerge -uDp world e depois emerge -uD world, de qq forma o mythos com o uDav faz a mesma coisa mas é tipo 2 em 1:)


_________________

------------------------------------------------
Linux Gandalf 3.2.35-grsec
Gentoo Base System version 2.2
------------------------------------------------
Back to top
View user's profile Send private message
GothicKnight
Tux's lil' helper
Tux's lil' helper


Joined: 02 Aug 2004
Posts: 123
Location: Santa Maria da Feira/Portugal

PostPosted: Wed Dec 22, 2004 12:56 am    Post subject: Reply with quote

2 Consolas...

1 a com
Code:
emerge - fuDav world
e a outra com
Code:
emerge -uDav world


Assim o download não para para que os pacotes sejam compilados
_________________
Se a vida não te sorri... Faz-lhe cocegas.
Back to top
View user's profile Send private message
codemaker
Guru
Guru


Joined: 03 Jun 2004
Posts: 398
Location: Lisboa, Portugal

PostPosted: Wed Dec 22, 2004 10:16 am    Post subject: Reply with quote

Straydog wrote:

Peço desculpa então :D São argumentos que se passam ao emerge? Não estou muito habituado a este palavreado :D


Também são flags mas num contexto um pouco diferente. :roll:

São flags para controlo do funcionamento da ferramenta emerge directamente na linha de comandos. Existem outras que são passadas como uma espécie de variáveis de ambiente (mas não são!). Essas encontram-se principalmente no /etc/make.conf.

As CHOST e CFLAGS são flags passadas ao gcc e não ao emerge.
Back to top
View user's profile Send private message
fernandotcl
Veteran
Veteran


Joined: 20 Nov 2003
Posts: 1396
Location: Sao Paulo, Brazil

PostPosted: Wed Dec 22, 2004 2:57 pm    Post subject: Reply with quote

@ Straydog: argumentos ou opções. De flags já temos as CFLAGS e as USE flags pra nos confundir. :wink:

GothicKnight wrote:
2 Consolas...

1 a com
Code:
emerge - fuDav world
e a outra com
Code:
emerge -uDav world


Assim o download não para para que os pacotes sejam compilados

Essa é uma coisa que o Portage podia fazer automaticamente. Eu só faço isso quando não estou fazendo nada, porque isso é relativamente perigoso, tem que ficar de olho. Se a compilação vai mais rápido que o download, o que está compilando vai tentar baixar o arquivo, e vai acabar corrompendo-o. E o pior que você só vai perceber quando o acabar o download o MD5 falhar...

Ok, o -a ajuda a controlar, mas ainda sim seria bem melhor se fosse automático. É relativamente seguro se você tiver pacotes grandes pra compilar já baixados, assim a compilação fica mais lenta que o download.
_________________
RTFM!
Back to top
View user's profile Send private message
GothicKnight
Tux's lil' helper
Tux's lil' helper


Joined: 02 Aug 2004
Posts: 123
Location: Santa Maria da Feira/Portugal

PostPosted: Thu Dec 23, 2004 3:51 am    Post subject: Reply with quote

Quote:
Eu só faço isso quando não estou fazendo nada, porque isso é relativamente perigoso, tem que ficar de olho. Se a compilação vai mais rápido que o download, o que está compilando vai tentar baixar o arquivo, e vai acabar corrompendo-o. E o pior que você só vai perceber quando o acabar o download o MD5 falhar...


Se existir um emerge a fazer o download esse ficheiro fica locked e não é acessivel, assim sendo o outro emerge fica a espera que o ficheiro fique disponivel mas não faz o download
_________________
Se a vida não te sorri... Faz-lhe cocegas.
Back to top
View user's profile Send private message
RoadRunner
Bodhisattva
Bodhisattva


Joined: 12 Jun 2002
Posts: 490
Location: Coimbra, Portugal

PostPosted: Thu Dec 23, 2004 4:14 am    Post subject: Reply with quote

Exacto, essa é uma das novas funcionalidades das últimas versões do portage. Muito útil quando temos várias máquinas a usar uma directoria partilhada de distfiles.
Back to top
View user's profile Send private message
codemaker
Guru
Guru


Joined: 03 Jun 2004
Posts: 398
Location: Lisboa, Portugal

PostPosted: Thu Dec 23, 2004 8:46 am    Post subject: Reply with quote

Pois... só se for mesmo uma característica recente porque lembro-me bem de me ter acontecido várias vezes ter dois downloads para o mesmo ficheiro.
Back to top
View user's profile Send private message
fernandotcl
Veteran
Veteran


Joined: 20 Nov 2003
Posts: 1396
Location: Sao Paulo, Brazil

PostPosted: Thu Dec 23, 2004 5:50 pm    Post subject: Reply with quote

GothicKnight wrote:
Se existir um emerge a fazer o download esse ficheiro fica locked e não é acessivel, assim sendo o outro emerge fica a espera que o ficheiro fique disponivel mas não faz o download

Wow, eu devia ler os changelogs do Portage, eu esperava por alguma coisa assim há um certo tempo. Boa dica. :wink:
_________________
RTFM!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portuguese 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