segunda-feira, 29 de novembro de 2010

Como utilizar o zypper com o OpenSuSE

Instalando e removendo software

Para instalar um pacote registrado no repositorio use:

mozart:/etc/samba # zypper install samba-doc
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following NEW package is going to be installed:
  samba-doc

1 new package to install.
Overall download size: 13.3 MiB. After the operation, additional 24.2 MiB will be used.
Continue? [y/n/?] (y): y
Retrieving package samba-doc-3.4.3-3.6.1.noarch (1/1), 13.3 MiB (24.2 MiB unpacked)
Retrieving: samba-doc-3.4.3-3.6.1.noarch.rpm [done (82.1 KiB/s)]
Installing: samba-doc-3.4.3-3.6.1 [done]
mozart:/etc/samba #

Para remover um pacote instalado use:

mozart:/etc/samba # zypper remove augeas-lenses
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following package is going to be REMOVED:
  augeas-lenses

1 package to remove.
After the operation, 151.0 KiB will be freed.
Continue? [y/n/?] (y): y
Removing augeas-lenses-0.5.0-2.2 [done]
There are some running programs that use files deleted by recent upgrade. You may wish to restart some of them. Run 'zypper ps' to list these programs.
mozart:/etc/samba #

Atualizando Pacotes:

Há duas maneiras de atualizar os pacotes com zypper. Para atualizar todas as correções oficiais, rode o comando abaixo:

mozart:/etc/samba # zypper update

nesse caso, todos os patches que estão disponiveis no repositorio serao verificados e instalados, se necessario.

Para à atualização de um único pacote, rode o comando abaixo:

mozart:/etc/samba # zypper update aaa_base
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following package is going to be upgraded:
  aaa_base

1 package to upgrade.
Overall download size: 148.0 KiB. No additional space will be used or freed after the operation.
Continue? [y/n/?] (y): y

Retrieving package aaa_base-11.2-43.46.1.x86_64 (1/1), 148.0 KiB (319.0 KiB unpacked)
Retrieving delta: ./rpm/x86_64/aaa_base-11.2-43.45.1_43.46.1.x86_64.delta.rpm, 93.0 KiB
Retrieving: aaa_base-11.2-43.45.1_43.46.1.x86_64.delta.rpm [done (8.9 KiB/s)]
Applying delta: ./aaa_base-11.2-43.45.1_43.46.1.x86_64.delta.rpm [done]
Installing: aaa_base-11.2-43.46.1 [done]
Additional rpm output:
insserv: warning: script 'K01bilogix' missing LSB tags and overrides
insserv: warning: script 'bilogix' missing LSB tags and overrides
Updating etc/sysconfig/language...
Updating etc/sysconfig/backup...
Updating etc/sysconfig/boot...
Updating etc/sysconfig/kernel...
Updating etc/sysconfig/suseconfig...
Updating etc/sysconfig/clock...
Updating etc/sysconfig/proxy...
Updating etc/sysconfig/windowmanager...
Updating etc/sysconfig/sysctl...
Updating etc/sysconfig/cron...
Updating etc/sysconfig/news...
Updating etc/sysconfig/shutdown...
Updating etc/passwd...unchanged
Updating etc/group...unchanged
Updating etc/shadow...unchanged
insserv: warning: script 'K01bilogix' missing LSB tags and overrides
insserv: warning: script 'bilogix' missing LSB tags and overrides


There are some running programs that use files deleted by recent upgrade. You may wish to restart some of them. Run 'zypper ps' to list these programs.

mozart:/etc/samba #

Para verificar os pacotes de atualizacao no repositorio registrado, verifique com o comando abaixo:

mozart:/etc/samba # zypper list-updates
Loading repository data...
Reading installed packages...
S | Repository           | Name                                | Current Version | Available Version | Arch
--+----------------------+-------------------------------------+-----------------+-------------------+-------
v | openSUSE-11.2-Update | aria2                               | 1.5.2-2.3.1     | 1.9.3-0.1.1       | x86_64
v | openSUSE-11.2-Update | autofs                             | 5.0.4-6.1       | 5.0.4-6.2.1       | x86_64
v | openSUSE-11.2-Update | bash                               | 4.0-18.3        | 4.0-18.4.1        | x86_64
v | openSUSE-11.2-Update | bash-doc                         | 4.0-18.3        | 4.0-18.4.1        | x86_64
v | openSUSE-11.2-Update | bzip2                               | 1.0.5-36.6      | 1.0.5-36.7.1      | x86_64
v | openSUSE-11.2-Update | cifs-mount                       | 3.4.2-1.1.3.1   | 3.4.3-3.6.1       | x86_64
v | openSUSE-11.2-Update | cpio                                | 2.10-4.2        | 2.10-4.3.1        | x86_64
v | openSUSE-11.2-Update | cron                                | 4.1-195.196.1   | 4.1-195.197.1     | x86_64
v | openSUSE-11.2-Update | cups                                | 1.3.11-4.1      | 1.3.11-4.5.1      | x86_64
v | openSUSE-11.2-Update | cups-client                       | 1.3.11-4.1      | 1.3.11-4.5.1      | x86_64
v | openSUSE-11.2-Update | cups-libs                          | 1.3.11-4.1      | 1.3.11-4.5.1      | x86_64
v | openSUSE-11.2-Update | desktop-translations           | 11.2-11.13.1    | 11.2-11.16.1      | noarch
v | openSUSE-11.2-Update | device-mapper                   | 1.02.31-11.2    | 1.02.31-11.3.1    | x86_64
v | openSUSE-11.2-Update | dhcpcd                             | 3.2.3-47.2      | 3.2.3-47.4.1      | x86_64
v | openSUSE-11.2-Update | ethtool                             | 6-79.2          | 6-79.3.1          | x86_64
v | openSUSE-11.2-Update | findutils                            | 4.4.0-46.2      | 4.4.0-46.3.1      | x86_64
v | openSUSE-11.2-Update | freetype2                          | 2.3.9-2.2       | 2.3.9-2.4.1       | x86_64

Nenhum comentário:

Postar um comentário