[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

Welcome to the Slackware Documentation Project

This page is still work in progress - sinisa
Страница је у изради - sinisa

slackpkg

Slackpkg је аутоматизовани алат за управљање локалних и инсталирање нових пакета путем мреже. Данас slackpkg долази као део Слаквера, ако га ипак немате инсталираног најновију верзију можете преузети са SourceForge и инсталирати га са installpkg.

Конфигурација

Пре него почнете користити slackpkg потребно је да имате најсвежију листу пакета и њихове верзије, тек онда их алат може аутоматски преузети са странице/огледала који сте одабрали. Да би одабрали огледало/страницу, једноставно откоментирјте један УРЛ у фајлу /etc/slackpkg/mirrors. Имајте на уму да су везе сортиране по издањима Слаквер верзије, будите сигурни да је веза коју сте одабрали за ону верзију Слаквера коју имате инсталирану на Вашем рачунару.

Онда покрените:

darkstar~# slackpkg update gpg

Следећи крак је освежавање листе пакета са:

darkstar~# slackpkg update

Ако није било промена у листама, бићете упитани са:

No changes in ChangeLog.txt between your last update and now.
Do you really want to download all other files (y/N)?

У супротном slackpkg ће преузети, инсталирати и користити тренутне информације о новим пакетима.

Блеклистовање

slackpkg ће узети у обзир све шаблоне у /etc/slackpkg/blacklist. На примеру следећег шаблона slackpkg ће занемарити све пакете инсталиране из СБо и из ејлијенБоб-овог репозиторијума:

[0-9]+_SBo
[0-9]+alien

Коришћење

Slackpkg користи шаблоне за претрагу инсталирање и уклањање пакета. Шаблон ће претраживати по листама пакета и сви пакети који се поклапају са шаблоном ће бити приказани.

Претрага

Претрага пакета ће Вам показати информацију о пуном имену пакета, верзији и да ли је пакет инсталиран.

darkstar~# slackpkg search mc

Looking for mc in package list. Please wait... DONE

Доња листа приказује све пакете са "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

претрага-фајла

Да би тражили одређени фајл и касније инсталирали или уклонили пакет који садржи тај фајл:

darkstar~# slackpkg file-search sshd

Looking for sshd in package list. Please wait... DONE

Доња листа приказује пакет који садржи "sshd" фајл.

[ installed ] - openssh-6.0p1-i486-2

инфо

Да би добили информацију о пакету slackpkg Info packagename ће вам исписати на екрану информације о пакету.

инсталација

Да би инсталирали пакет користите slackpkg install pattern. Ако је пакет пронађен на екрану ће се исписати сви пакети који одговарају шаблону па корисник може одабрати који пакет жели инсталирати.
Да инсталирате све на одређеној грани можете унети: slackpkg install branch на пример slackpkg install kde ће инсталирати све са kde гране( али ништа са 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.

Pay attention to changed configuration files. Update them either by merging your customizations from the older configuration files (Slackpkg can optionally step through every changed configuration file and allow you to resolve the changes) or manually editing the new files after allowing Slackpkg to overwrite the old configuration files. You decide which way works best for you.
 sr:slackware:slackpkg ()
This translation is older than the original page and might be outdated. See what has changed.