slpkg/README.rst

237 lines
7.9 KiB
ReStructuredText
Raw Normal View History

2022-06-19 22:54:49 +03:00
.. contents:: Table of Contents:
2022-06-19 22:54:49 +03:00
About
-----
2022-06-20 23:14:46 +03:00
Slpkg is a software package manager that installs, updates and removes packages on `Slackware <http://www.slackware.com/>`_-based systems.
2022-06-19 22:54:49 +03:00
It automatically calculates dependencies and figures out what things need to happen to install packages.
Slpkg makes it easier to manage groups of machines without the need for manual updates.
2023-04-14 12:53:33 +03:00
Slpkg works in accordance with the standards of the `SlackBuilds.org <https://www.slackbuilds.org>`__ organization to build packages.
2022-06-19 22:54:49 +03:00
It also uses the Slackware Linux instructions for installing, upgrading or removing packages.
.. image:: https://gitlab.com/dslackw/images/raw/master/slpkg/slpkg_package.png
:target: https://gitlab.com/dslackw/slpkg
Requirements
------------
2022-06-19 22:54:49 +03:00
.. code-block:: bash
2023-03-15 17:08:48 +02:00
SQLAlchemy >= 1.4.46
2022-12-24 21:07:09 +02:00
pythondialog >= 3.5.3
2023-01-05 18:16:08 +02:00
progress >= 1.6
Install
-------
2023-04-14 12:53:33 +03:00
Install it from the official third-party `SlackBuilds.org <https://slackbuilds.org/repository/15.0/system/slpkg/>`__ repository or directly from source:
.. code-block:: bash
2023-04-14 12:46:56 +03:00
$ tar xvf slpkg-4.7.8.tar.gz
$ cd slpkg-4.7.8
$ ./install.sh
2022-12-28 21:46:50 +02:00
Screenshots
-----------
2023-01-04 23:12:51 +02:00
.. image:: https://gitlab.com/dslackw/images/raw/master/slpkg/slpkg_install.png
2022-12-28 21:46:50 +02:00
:target: https://gitlab.com/dslackw/slpkg
2023-01-04 23:22:30 +02:00
.. image:: https://gitlab.com/dslackw/images/raw/master/slpkg/slpkg_remove.png
:target: https://gitlab.com/dslackw/slpkg
2023-01-05 19:18:08 +02:00
.. image:: https://gitlab.com/dslackw/images/raw/master/slpkg/slpkg_dependees.png
:target: https://gitlab.com/dslackw/slpkg
2023-01-05 19:23:17 +02:00
Usage
-----
.. code-block:: bash
$ slpkg --help
2023-03-07 18:48:39 +02:00
USAGE: slpkg [OPTIONS] [COMMAND] [FILELIST|PACKAGES...]
2022-06-19 22:54:49 +03:00
2022-06-21 09:35:35 +03:00
DESCRIPTION:
2023-02-28 23:51:00 +02:00
Package manager utility for Slackware.
2022-06-21 09:35:35 +03:00
COMMANDS:
2023-01-28 20:00:03 +02:00
-u, update Update the package lists.
-U, upgrade Upgrade all the packages.
-c, check-updates Check for news on ChangeLog.txt.
2023-04-02 11:55:52 +03:00
-I, repo-info Prints the repositories information.
2023-01-28 20:00:03 +02:00
-g, configs Edit the configuration file.
-L, clean-logs Clean dependencies log tracking.
2023-03-07 18:48:39 +02:00
-T, clean-data Clean all the repositories data
2023-01-28 20:11:45 +02:00
-D, clean-tmp Deletes all the downloaded sources.
2023-03-02 19:35:26 +02:00
-b, build [packages...] Build only the packages.
-i, install [packages...] Build and install the packages.
-d, download [packages...] Download only the scripts and sources.
-R, remove [packages...] Remove installed packages.
-f, find [packages...] Find installed packages.
-w, view [packages...] View packages from the repository.
-s, search [packages...] Search packages from the repository.
-e, dependees [packages...] Show which packages depend.
-t, tracking [packages...] Tracking the packages dependencies.
2022-06-19 22:54:49 +03:00
2022-06-21 00:52:24 +03:00
OPTIONS:
2023-01-28 20:00:03 +02:00
-y, --yes Answer Yes to all questions.
-j, --jobs Set it for multicore systems.
2023-02-25 20:57:40 +02:00
-o, --resolve-off Turns off dependency resolving.
2023-03-01 09:36:36 +02:00
-r, --reinstall Upgrade packages of the same version.
2023-02-25 20:57:40 +02:00
-k, --skip-installed Skip installed packages.
-E, --full-reverse Full reverse dependency.
2023-01-28 20:00:03 +02:00
-S, --search Search packages from the repository.
2023-02-25 20:57:40 +02:00
-n, --no-silent Disable silent mode.
-p, --pkg-version Print the repository package version.
2023-03-07 18:48:39 +02:00
-G, --generate-only Generates only the SLACKBUILDS.TXT file.
2023-03-13 17:21:56 +02:00
-P, --parallel Download files in parallel.
2023-04-02 11:55:52 +03:00
-B, --bin-repo=[REPO] Set a binary repository.
2023-04-02 19:47:01 +03:00
-z, --directory=[PATH] Download files to a specific path.
-h, --help Show this message and exit.
-v, --version Print version and exit.
2022-06-21 00:52:24 +03:00
2023-02-26 22:56:51 +02:00
If you need more information try to use slpkg manpage.
2023-03-02 19:35:26 +02:00
Extra help for the commands, use: 'slpkg help [command]'.
2023-02-27 10:46:26 +02:00
Edit the config file in the /etc/slpkg/slpkg.toml or 'slpkg configs'.
2023-02-26 22:56:51 +02:00
2022-12-08 19:44:46 +02:00
2023-04-13 19:02:10 +03:00
How to start
------------
2023-04-14 12:53:33 +03:00
If you are going to use only the `SlackBuilds.org <https://slackbuilds.org/>`__ repository, you don't need to edit the
2023-04-13 19:02:10 +03:00
:code:`/etc/slpkg/repositories.toml` file, otherwise edit the file and set :code:`true` the repositories you want.
The second step is to update the package lists and install the data to the database, just run:
.. code-block:: bash
$ slpkg update
or for binary repositories:
.. code-block:: bash
2023-04-13 19:04:17 +03:00
$ slpkg update --bin-repo='*'
2023-04-13 19:02:10 +03:00
Now you are ready to start!
2023-04-14 12:53:33 +03:00
To install a package from the `SlackBuilds.org <https://slackbuilds.org/>`__ or `Ponce <https://cgit.ponce.cc/slackbuilds/>`_ repository, run:
2023-04-13 19:02:10 +03:00
.. code-block:: bash
$ slpkg install <package_name>
or from a binary repository:
2023-04-13 19:04:17 +03:00
.. code-block:: bash
2023-04-13 19:02:10 +03:00
$ slpkg install <package_name> --bin-repo=<repo_name>
2023-04-13 19:11:41 +03:00
You can install a whole repository with the command:
.. code-block:: bash
2023-04-13 23:50:01 +03:00
$ slpkg install '*' --bin-repo=<repository_name> --resolve-off
2023-04-13 19:11:41 +03:00
2023-04-13 23:50:01 +03:00
Note: Apply the option '--resolve-off' to speed up the process, if the repository has no references to the dependencies.
2023-04-13 19:11:41 +03:00
To remove a package with the dependencies:
.. code-block:: bash
$ slpkg remove <package_name>
2023-04-13 19:16:50 +03:00
If you wan to search a package from all binaries repositories, run:
.. code-block:: bash
2023-04-13 23:50:37 +03:00
$ slpkg search <package_name> --bin-repo='*'
2023-04-13 19:16:50 +03:00
2023-04-13 23:51:12 +03:00
Edit the configuration :code:`/etc/slpkg/slpkg.toml` file:
2023-04-13 19:14:24 +03:00
.. code-block:: bash
2023-04-13 23:51:12 +03:00
$ slpkg configs
2023-04-13 19:11:41 +03:00
2023-04-13 23:51:12 +03:00
For further information, please read the manpage:
2023-04-13 19:18:23 +03:00
.. code-block:: bash
2023-04-13 23:51:12 +03:00
$ man slpkg
2023-04-13 19:18:23 +03:00
2022-12-08 19:44:46 +02:00
2022-06-19 22:54:49 +03:00
Configuration files
-------------------
.. code-block:: bash
/etc/slpkg/slpkg.toml
2022-06-19 22:54:49 +03:00
General configuration of slpkg
2023-04-02 11:55:52 +03:00
/etc/slpkg/repositories.toml
Repositories configurations
/etc/slpkg/blacklist.toml
2022-06-19 22:54:49 +03:00
Blacklist of packages
2023-03-02 17:53:37 +02:00
Repositories
------------
2023-04-14 13:00:08 +03:00
This is the list with the supported repositories, please read the repositories configuration file.
2023-04-02 11:55:52 +03:00
2023-04-14 12:58:21 +03:00
- `Slackbuilds <https://slackbuilds.org/>`_
- `Ponce <https://cgit.ponce.cc/slackbuilds/>`_
- `Slackware <https://slackware.uk/slackware/slackware64-15.0/>`__
- `Slackware extra <https://slackware.uk/slackware/slackware64-15.0/extra/>`__
- `Slackware patches <https://slackware.uk/slackware/slackware64-15.0/patches/>`__
- `Alien <http://slackware.uk/people/alien/sbrepos/15.0/x86_64/>`_
- `Multilib <https://slackware.nl/people/alien/multilib/15.0/>`_
- `Restricted <https://slackware.nl/people/alien/restricted_sbrepos/15.0/x86_64/>`_
- `Gnome <https://reddoglinux.ddns.net/linux/gnome/41.x/x86_64/>`_
- `Msb <https://slackware.uk/msb/15.0/1.26/x86_64/>`_
- `Csb <https://slackware.uk/csb/15.0/x86_64/>`_
- `Conraid <https://slack.conraid.net/repository/slackware64-current/>`_
- `Slackonly <https://packages.slackonly.com/pub/packages/15.0-x86_64/>`_
- `Salix OS <https://download.salixos.org/x86_64/slackware-15.0/>`_
- `Salix OS extra <https://download.salixos.org/x86_64/slackware-15.0/extra/>`_
- `Salix OS patches <https://download.salixos.org/x86_64/slackware-15.0/patches/>`_
- `Slackel OS <http://www.slackel.gr/repo/x86_64/current/>`_
- `Slint OS <https://slackware.uk/slint/x86_64/slint-15.0/>`_
2023-03-02 17:53:37 +02:00
2023-04-04 23:18:46 +03:00
Multilib packages
-----------------
Slackware for x86_64 - multilib packages & install instructions:
2023-04-04 23:39:46 +03:00
- Please read the file `README <https://gitlab.com/dslackw/slpkg/-/raw/master/filelists/multilib/README>`_ you will find in the folder `multlib <https://gitlab.com/dslackw/slpkg/-/tree/master/filelists/multilib>`_.
2023-04-04 23:18:46 +03:00
2022-06-19 22:54:49 +03:00
Donate
------
2023-04-14 13:09:34 +03:00
If you feel satisfied with this project and want to thank me, treat me to a coffee ☕ !
2022-06-19 22:54:49 +03:00
.. image:: https://gitlab.com/dslackw/images/raw/master/donate/paypaldonate.png
:target: https://www.paypal.me/dslackw
2023-04-13 19:11:41 +03:00
Report bugs
-----------
Please report any issue here: `Issues <https://gitlab.com/dslackw/slpkg/-/issues>`_
Copyright
---------
2023-01-11 20:03:28 +02:00
- Copyright 2014-2023 © Dimitris Zlatanidis.
- Slackware® is a Registered Trademark of Patrick Volkerding.
2022-06-20 19:45:10 +03:00
- Linux is a Registered Trademark of Linus Torvalds.