Como instalar o pacote src no SUSE?

3

Eu uso o comando zypper si para instalar o pacote fonte no SUSE:

localhost:/dev/disk/by-id # zypper si zlib
Reading installed packages...
Loading repository data...
Resolving package dependencies...

The following source package is going to be installed:
  zlib

1 source package to install.
Overall download size: 587.0 KiB. Already cached: 0 B. After the operation, additional 597.7 KiB will be used.
Continue? [y/n/? shows all options] (y): y
Checking for file conflicts: ........................................................................................................[done]

Mas quando eu uso o comando: zypper se para verificar o estado do pacote, ele mostra "not installed":

localhost:/dev/disk/by-id # zypper se zlib
Loading repository data...
Reading installed packages...

S | Name | Summary                  | Type
--+------+--------------------------+-----------
  | zlib | Data Compression Library | srcpackage

Alguém poderia dar algumas dicas?

    
por Nan Xiao 22.09.2015 / 04:59

1 resposta

4

Na verdade, o pacote de origem foi instalado com sucesso na pasta /usr/src/package . Mas ele não está marcado como " installed " deste documento :

HINT: Source packages can be copied from the installation medium to the hard disk and unpacked with YaST. They are not, however, marked as installed ([i]) in the package manager. This is because the source packages are not entered in the RPM database. Only installed operating system software is listed in the RPM database. When you install a source package, only the source code is added to the system.

    
por 23.09.2015 / 05:55