1 |
Fiz um tb |
2 |
|
3 |
Se quiser fazer update apenas de pacotes marcados como U |
4 |
# emerge $(emerge -uDp world|awk {'if ($2=="U") { print "="$4}'}) |
5 |
|
6 |
Se quiser fazer update de pacotes marcados como U ou N |
7 |
# emerge $(emerge -uDp world|awk {'if ($2=="U" || $2=="N") { print "="$4}'}) |
8 |
|
9 |
Se quiser fazer update de pacotes marcados como U, N ou NS |
10 |
# emerge $(emerge -uDp world|awk {'if ($2=="U" || $2=="N" || $2=="NS") |
11 |
{ print "="$4}'}) |
12 |
|
13 |
|
14 |
|
15 |
|
16 |
On Wed, 30 Mar 2005 10:03:58 -0300, Marcus André Fazzi Ribeiro |
17 |
<anunakin@×××××.com> wrote: |
18 |
> Muito útil para quem como Eu misturou instáveis ~x86 com estáveis.... |
19 |
> |
20 |
> Nome: emerge_world_upgradeonly |
21 |
> Código: |
22 |
> |
23 |
> #!/bin/bash |
24 |
> PACKS=`emerge -uDp world |grep -v "^$"|grep -v "UD"|grep "]"|cut -d |
25 |
> "]" -f 2|cut -d " " -f 2|sed-e "s/.*/=&/g"` |
26 |
> emerge $1 $PACKS |
27 |
> |
28 |
> -- |
29 |
> Marcus André Fazzi Ribeiro |
30 |
> Athlon XP 2400+ 512 MB Gentoo Linux |
31 |
> PlayStaion 2 + NA + HDD 80GB + PS2Linux |
32 |
> |
33 |
> |
34 |
> |
35 |
|
36 |
|
37 |
-- |
38 |
[]s Magno |
39 |
Linux user: #123834 |
40 |
http://counter.li.org |
41 |
|
42 |
-- |
43 |
gentoo-user-br@g.o mailing list |