¡Esta es una revisión vieja del documento!
Tabla de Contenidos
slackpkg
Slackpkg es una herramienta automatizada para administrar paquetes locales e instalar paquetes nuevos a través de una red. Hoy en día, slackpkg viene como parte de Slackware, pero si no lo tiene instalado, la última versión se puede descargar de slackpkg.org e instalar con installpkg.
Configurando
Antes de poder utilizar slackpkg, debe tener una lista actualizada de paquetes y sus versiones, y la herramienta puede descargarla automáticamente una vez que se selecciona un mirror. Para seleccionar un mirror, simplemente elimine el comentario de una sola URL en el archivo /etc/slackpkg /mirrors
. Tenga en cuenta que los enlaces están ordenados por las versiones de Slackware, así que asegúrese de que el enlace seleccionado esté en el mismo lanzamiento que le interesa. Se recomienda, aunque no es obligatorio, que use el espejo “mirrors.slackware.com”. , ya que uno lo redireccionará automáticamente a su espejo geográficamente más cercano.
Entonces corre:
darkstar~# slackpkg update gpg
El siguiente paso sería actualizar la lista de paquetes con:
darkstar~# slackpkg update
Si no ha habido un cambio en la lista, se le indicará con:
No changes in ChangeLog.txt between your last update and now. Do you really want to download all other files (y/N)?
De lo contrario, slackpkg descargará e instalará la información del paquete actual y usará esa lista.
Lista negra
slackpage tendrá en cuenta cualquier patrón de /etc/slackpkg/blacklist
. Por ejemplo, los siguientes patrones harán que slackpkg ignore cualquier paquete que se haya instalado desde SBo y desde el repositorio de alienBob:
[0-9]+_SBo [0-9]+alien
Uso
Lea esta página completa antes de usar slackpkg, especialmente la parte sobre Actualizaciones completas del sistema, si está o planea ejecutar Slackware -current.
Slackpkg usa patrones para buscar instalar y eliminar paquetes. El patrón se buscará en la lista de paquetes y se mostrará cualquier paquete que coincida con el patrón.
Search
Searching a package will show you information about the package full name, version and installed status.
darkstar~# slackpkg search mc Looking for mc in package list. Please wait... DONE The list below shows all packages with name matching "mc". [ installed ] - mcelog-1.0pre3-i486-1 [uninstalled] - pcmciautils-017-i486-1 [ installed ] - mc-4.8.1.3-i486-1 [ installed ] - libmcrypt-2.5.8-i486-1
file-search
To search a specific file and later install or remove the package that contains this file:
darkstar~# slackpkg file-search sshd Looking for sshd in package list. Please wait... DONE The list below shows the packages that contains "sshd" file. [ installed ] - openssh-6.0p1-i486-2
info
To get information about a package slackpkg Info packagename
will print the package's information to the screen.
install
To install a package use slackpkg install pattern
. If a package was found a dialog window will present any packages that matches to the pattern and the user can un/check which packages to install.
To install everything in a branch you can type: slackpkg install branch
for example slackpkg install kde
will install everything under kde (but nothing from kdei).
remove
To remove a package use slackpkg remove pattern
. If a package was found a dialog window will present any packages that matches to the pattern and the user can un/check which packages to remove.
upgrade
If an update is available for a certain package, it can be updated with slackpkg upgrade packagename
.
reinstall
This command can be used if a package became broken and needs to be re-installed.
blacklist
This can be used to add a certain package to the blacklist. Blacklisted packages are being disregarded by slackpkg.
generate-template
If you need to re-install the entire system or install a new PC that will have similar installed packages, a user can generate a template to be installed later.
install-template
This command is used to have all the packages in a template be installed on this PC.
install-new
Running slackpkg with this argument generates a list of packages that were introduces to the Slackware recently, for example new dependencies to a package. It is advisable to run this command before updating the system if you synchronize to slackware-current.
upgrade-all
Running slackpkg with this argument will generate a list of all packages that can be upgraded with a new version. The user can un/check which packages to upgrade from a dialog list.
clean-system
Running slackpkg with this argument will generate a list of all packages that are obsolete and can be safely removed from the system. Note that non-official packages will be listed here unless blacklisted.
new-config
During installation a new configuration file might be installed and overwrite your configurations. To prevent that the file will receive a “.new” prefix and after installation slackpkg will inform the user about the existence of these files. Running slackpkg with this argument will search for the existence of these files and will ask the user for instructions.
check-updates
Running slackpkg with this argument will produce a clean printout if there are any available updates.
Full system upgrade
To perform a full system upgrade, please follow these steps (as root user):
slackpkg update slackpkg install-new slackpkg upgrade-all slackpkg clean-system
It is always recommended to read the latest ChangeLogs and UPGRADING.TXT
(found on the HTTP/FTP mirrors for each version) before doing any major system upgrades.