slpkg/man/slpkg.1

270 lines
9 KiB
Groff
Raw Normal View History

2023-04-25 21:42:07 +02:00
.TH slpkg 1 "Orestiada, Greece" "slpkg 4.8.2" dslackw
.SH NAME
.P
2023-02-28 22:51:00 +01:00
slpkg \- Package manager utility for Slackware.
2023-02-27 17:05:11 +01:00
.SH SYNOPSIS
.P
2023-03-05 19:37:05 +01:00
slpkg \c
2023-03-28 19:01:09 +02:00
[\fICOMMAND\fR] [\fIOPTIONS\fR] [\fIFILELIST|PACKAGES...\fR]
.P
2023-04-26 06:44:48 +02:00
slpkg [-h|-v] [-u, update] [-U, upgrade] [-c, check-updates] [-I, repo-info] [-g, configs]
2023-04-25 21:42:07 +02:00
[-L, clean-logs] [-D, clean-tmp] [-T, clean-data] [-b, build] [-i, install] [-d, download]
2023-03-01 11:47:18 +01:00
[-R, remove] [-f, find] [-w, view] [-s, search] [-e, dependees] [-t, tracking] -y, --yes, -j, --jobs, -o, --resolve-off,
2023-05-02 16:48:37 +02:00
-r, --reinstall, -k, --skip-installed, -a, --install-data, -E, --full-reverse, -S, --search, -n, --no-silent, -p, --pkg-version,
2023-05-04 18:46:10 +02:00
-P, --parallel, -o, --repository=[\fIREPO\fR], -z, --directory=[\fIPATH\fR]
.SH DESCRIPTION
.P
2022-12-26 10:43:34 +01:00
Slpkg is a software package manager that installs, updates, and removes packages on Slackware based systems.
It automatically computes dependencies and figures out what things should occur to install packages.
Slpkg makes it easier to maintain groups of machines without having to manually update.
.P
2022-12-26 10:43:34 +01:00
Slpkg works in accordance with the standards of the organization SlackBuilds.org to build packages.
Also uses the Slackware Linux instructions for installation, upgrading or removing packages.
2022-06-21 08:35:35 +02:00
.SH COMMANDS
.P
2023-01-27 23:19:28 +01:00
.B -u, update
.RS
2022-06-19 20:38:52 +02:00
Updates the package list and the database.
.RE
.P
2023-01-27 23:19:28 +01:00
.B -U, upgrade
.RS
Upgrade all the installed packages if the newer version exists in the repository.
.RE
.P
2023-01-28 16:36:23 +01:00
.B -c, check-updates
.RS
2023-03-30 16:51:40 +02:00
Check if there is any news on the repositories ChangeLog.txt file.
.RE
.P
2023-03-29 10:59:44 +02:00
.B -I, repo-info
.RS
2023-03-30 22:04:51 +02:00
View information related to repositories, such as which repositories are active, when they were upgraded,
and how many packages they contain.
2023-03-29 10:59:44 +02:00
.RE
.P
2023-01-28 16:36:23 +01:00
.B -L, clean-logs
.RS
Cleans dependencies log tracking. After that procedure you should remove dependencies by hand.
.RE
.P
2023-03-05 22:03:46 +01:00
.B -T, clean-data
.RS
2023-03-06 20:04:44 +01:00
Sometimes is necessary to clean all the repositories data from the database.
Run this command to delete all the data and run '\fIslpkg update\fR' to recreate.
2023-03-05 22:03:46 +01:00
.RE
.P
2023-01-28 19:11:45 +01:00
.B -D, clean-tmp
.RS
Deletes all the downloaded SlackBuilds scripts and sources.
.RE
.P
2023-01-28 08:32:56 +01:00
.B -g, configs
.RS
Edit the configuration /etc/slpkg/slpkg.toml file.
.RE
.P
2023-01-21 16:57:53 +01:00
.B -b, build
.RS
Builds the Slackbuilds scripts and adds them to the /tmp directory.
.RE
.P
2023-01-21 16:57:53 +01:00
.B -i, install
.RS
2023-02-26 21:47:34 +01:00
Builds and installs the packages in the correct order, and also logs the packages with the dependencies for removal.
.RE
.P
2023-01-21 16:57:53 +01:00
.B -d, download
.RS
2023-03-14 09:55:50 +01:00
Download the current SlackBuilds scripts and the sources without building or installing them.
.RE
.P
2023-03-01 11:47:18 +01:00
.B -R, remove
.RS
2023-03-05 19:38:48 +01:00
Removes packages with dependencies if the packages was installed with '\fIslpkg install\fR' method.
2023-03-05 19:37:05 +01:00
Slpkg looks at the 'REPO_TAG' configuration to find packages for removal by default, except if you are using \fB--file-pattern\fR option.
.RE
.P
2023-01-21 16:57:53 +01:00
.B -f, find
2022-06-23 16:11:50 +02:00
.RS
2023-02-26 21:47:34 +01:00
Find your installed packages on your system..
2022-06-23 16:11:50 +02:00
.RE
.P
2023-01-21 16:57:53 +01:00
.B -w, view
2022-06-19 20:38:52 +02:00
.RS
2023-02-26 21:47:34 +01:00
View information packages from the repository and get everything in your terminal.
2022-06-19 20:38:52 +02:00
.RE
.P
2023-01-21 16:57:53 +01:00
.B -s, search
.RS
Search and match packages from the repository.
.RE
2022-12-22 19:53:37 +01:00
.P
2023-01-21 16:57:53 +01:00
.B -e, dependees
2022-12-22 19:53:37 +01:00
.RS
Show which SlackBuilds depend on.
.RE
2022-12-23 19:17:06 +01:00
.P
2023-01-21 16:57:53 +01:00
.B -t, tracking
2022-12-23 19:17:06 +01:00
.RS
Tracking the packages dependencies.
.RE
2022-06-21 08:35:35 +02:00
.SH OPTIONS
.P
2023-02-27 17:05:11 +01:00
.B -y, --yes
.RS
2023-02-25 20:45:56 +01:00
Answer Yes to all questions. (to be used with: -u, update, -U, upgrade, -L, clean-logs, -b, build,
2023-04-07 11:22:06 +02:00
-i, install, -R, remove, -d, download,)
.RE
.P
2023-02-27 17:05:11 +01:00
.B -j, --jobs
2022-06-20 16:50:16 +02:00
.RS
2023-03-05 19:37:05 +01:00
Acceleration of SlackBuild scripts. When the \fB--jobs\fR flag is set, slpkg automatically detects the number
2022-12-26 10:43:34 +01:00
of processors and enters it into the MAKEFLAGS variable. Some SlackBuilds fail when MAKEFLAGS is declared or
2023-02-25 20:45:56 +01:00
the number of processors (-j) is greater than one. (to be used with: -U, upgrade, -b, build, -i, install)
2022-06-20 16:50:16 +02:00
.RE
.P
2023-02-27 17:05:11 +01:00
.B -o, --resolve-off
.RS
2023-02-25 20:45:56 +01:00
Turns off dependency resolving. (to be used with: -U, upgrade, -b, build, -i, install)
.RE
2022-06-17 17:02:35 +02:00
.P
2023-03-01 11:47:18 +01:00
.B -r, --reinstall
2022-06-17 17:02:35 +02:00
.RS
2022-12-26 10:43:34 +01:00
Use this option if you want to upgrade all packages even if the same version is already installed.
2023-03-30 21:54:17 +02:00
Do not skip installed packages. (to be used with: -U, upgrade, -i, install)
2022-06-17 17:02:35 +02:00
.RE
2022-06-20 16:50:16 +02:00
.P
2023-02-27 17:05:11 +01:00
.B -k, --skip-installed
.RS
This a helpful option if you want to avoid building and reinstalling packages.
2023-01-21 16:57:53 +01:00
Note: This option affects only the dependencies. (to be used with: -i, install)
.RE
2022-12-25 19:02:55 +01:00
.P
2023-05-02 16:48:37 +02:00
.B -a, --install-data
.RS
Install the data into the database only, if when you don't want to re-download or re-synchronize the package lists,
and you have already downloaded the repository, you can apply this options to install the data into the database.
This is a helpful especially for locals repositories and for those who download the repositories manually.
2023-05-02 20:13:42 +02:00
(to be used with: -u, update)
2023-05-02 16:48:37 +02:00
.RE
.P
2023-02-27 17:05:11 +01:00
.B -E, --full-reverse
2022-12-25 19:02:55 +01:00
.RS
Full reverse dependency. Works only with -e, dependees command and show the requires too.
2023-01-21 16:57:53 +01:00
(to be used with: -e, dependees)
2022-12-21 20:23:54 +01:00
.RE
.P
2023-02-27 17:05:11 +01:00
.B -S, --search
2022-12-25 21:52:47 +01:00
.RS
2022-12-26 10:43:34 +01:00
Enable the dialog utility to search packages from the repository.
2023-03-06 16:49:10 +01:00
Example try: '\fIslpkg install python3 --search\fR' or '\fIslpkg download python3 --search\fR' and etc.
2023-03-01 11:47:18 +01:00
(to be used with: -b, build, -i, install, -d, download, -R, remove, -f, find, -w, view,
2023-01-21 16:57:53 +01:00
-s, search, -e, dependees, -t, tracking)
2022-12-25 21:52:47 +01:00
.RE
.P
2023-02-27 17:05:11 +01:00
.B -n, --no-silent
2023-01-15 17:09:20 +01:00
.RS
2023-03-13 19:42:40 +01:00
Disable silent mode, if it is enabled in the configuration file. (to be used with: -u, update, -U, upgrade, -b, build,
2023-03-30 22:42:48 +02:00
-i, install, -R, remove)
2023-01-15 17:09:20 +01:00
.RE
.P
2023-02-27 17:05:11 +01:00
.B -p, --pkg-version
2023-01-16 19:29:33 +01:00
.RS
2023-02-27 17:05:11 +01:00
Print the repository package version. (to be used with: -e, dependees, -t, tracking, -w, view)
2023-01-16 19:29:33 +01:00
.RE
.P
2023-03-13 16:21:56 +01:00
.B -P, --parallel
.RS
Download files in parallel to speed up the process.
(to be used with: -u, update, -U, upgrade, -b, build, -i, install, -d, download)
.RE
.P
2023-05-04 18:46:10 +02:00
.BI "-o," "" " \-\--repository=[" NAME "]
2023-03-27 17:10:00 +02:00
.RS
2023-05-04 18:46:10 +02:00
Set the repository you want to work with. Make sure that you have been enabling the repository in the file '/etc/slpkg/repositories.toml'.
Repo pattern '*' supported only with: '-s, search' option.
2023-04-04 13:01:40 +02:00
(to be used with: -u, update, -c, check-updates, -U, upgrade, -i, install, -d, download, -s, search, -t, tracking, -e, dependees, -w, view)
2023-03-27 17:10:00 +02:00
.RE
.P
2023-03-01 23:17:16 +01:00
.BI "-z," "" " \-\-directory=[" PATH "]
2023-01-17 20:03:01 +01:00
.RS
2023-02-27 17:05:11 +01:00
The directory is the path where the files will be saved. (to be used with: -d, download)
2023-01-17 20:03:01 +01:00
.RE
.P
2023-02-27 17:05:11 +01:00
.B -h | --help
2022-06-20 16:50:16 +02:00
.RS
2022-12-21 20:23:54 +01:00
Show help information and exit.
2022-06-20 16:50:16 +02:00
.RE
.P
2023-02-27 17:05:11 +01:00
.B -v | --version
2022-06-20 16:50:16 +02:00
.RS
Print version and exit.
.RE
2023-03-17 11:11:54 +01:00
.SH OPTION SYNTAX
.P
Away from the classical way, you may put several options that do not require arguments together, like:
.PP
.Vb 1.
\& slpkg -iPny [\fIPACKAGES...\fR]
.Ve
.RE
2023-03-06 22:10:37 +01:00
.SH FILELIST|PACKAGES
.P
Instead of packages, you can pass a text file with suffix '.pkgs' and with the names of the packages. Example: '\fIslpkg install list.pkgs\fR'.
2023-03-08 09:08:31 +01:00
Edit the config '/etc/slpkg/slpkg.toml' file to change the suffix if you want. You can use lists from others, like '.sqf' files.
2023-03-06 22:10:37 +01:00
.RE
2023-04-11 12:00:53 +02:00
.SH MUST YOU KNOW
.P
There are five indicators when some commands are used, for example:
Cyan: To install, Yellow: To build, Grey: It's installed, Violet: For the upgrade, Red: To remove.
When you use the install, build, upgrade or remove commands you should know that, if the package is installed then its
color will change to gray, if the package is upgradeable then it will change to violet, and if it is not installed then
its color will be cyan. Also, if you try to remove a package you will see the package color turns red.
2023-04-13 16:40:16 +02:00
Example: If the package is already installed and the indicator color is grey and the option '\fB-r, --reinstall\fR' is not applied,
2023-04-11 12:00:53 +02:00
the package will skip from the installation and you will see a message '(already installed)'.
If the package is upgradeable, the installation will continue and the package will go to upgrade.
For the upgrade command, you should know, that you can upgrade packages from different repositories, if you edit
2023-04-13 16:40:16 +02:00
the '\fI/etc/slpkg/repositories.toml\fR' file and remove the repository tag. Then the slpkg can't recognize the repository of the packages.
2023-04-11 12:00:53 +02:00
2023-04-13 16:40:16 +02:00
With the remove command, it's going to remove the dependencies if the package had installed with the '\fIslpkg install\fR' command,
2023-04-11 12:00:53 +02:00
otherwise, the slpkg does not know the dependencies that are installed with the packages that going to remove.
You can apply the asterisk '*' instead of a package, to matching all the packages from a repository. You can't apply
2023-04-13 16:40:16 +02:00
an asterisk to the '\fB-B, --bin-repos=\fR' option, except for the '\fB-s, search\fR', '\fB-u, update\fR' and '\fB-c, check-updates\fR' commands.
2023-04-11 12:00:53 +02:00
2023-04-11 12:06:40 +02:00
Command clean-data, removes the local repository data and the database data.
2023-04-11 12:04:09 +02:00
2023-04-11 12:00:53 +02:00
Note: There is currently no function to indicate the packages if the colors are disabled.
.RE
2023-04-25 20:15:35 +02:00
.SH EXIT STATUS
.P
0 Successful slpkg execution.
.P
1 Something wrong happened.
.P
20 No package found to be downloaded, installed, reinstalled, upgraded, or removed.
.RE
2022-06-19 21:57:06 +02:00
.SH CONFIGURATION FILES
.P
Configuration file in the /etc/slpkg/slpkg.toml file.
2023-03-27 17:10:00 +02:00
.P
Repositories file in the /etc/slpkg/repositories.toml file.
2023-03-14 18:24:49 +01:00
.P
Blacklist file in the /etc/slpkg/blacklist.toml file.
2023-03-14 18:24:49 +01:00
.P
2023-04-26 08:37:28 +02:00
\fIslpkg_new-configs\fR command it's managing the .new configuration files easily and fast. Move, copy or remove them.
2023-03-14 18:24:49 +01:00
.RE
.SH REPORT BUGS
.P
Please report any found to: https://gitlab.com/dslackw/slpkg/-/issues.
2023-04-28 11:03:38 +02:00
.P
2023-04-28 11:00:17 +02:00
Note: With the issue, please reference the log file you will find in the /tmp/slpkg/logs/slpkg.log path and paste it too.
2022-06-17 19:10:17 +02:00
.SH AUTHOR
.P
2023-04-11 13:02:03 +02:00
Dimitris Zlatanidis <dslackw@gmail.com>