2023-06-13 19:54:16 +02:00
|
|
|
# How to start
|
2023-06-12 19:25:34 +02:00
|
|
|
|
2023-06-15 07:40:34 +02:00
|
|
|
# Edit repositories
|
2023-06-12 19:25:34 +02:00
|
|
|
If you are going to use only the [SlackBuilds.org](https://slackbuilds.org) repository, you don't need to edit
|
|
|
|
the `/etc/slpkg/repositories.toml` file, otherwise edit the file and set `true` the repositories you want.
|
|
|
|
|
2023-06-15 07:40:34 +02:00
|
|
|
# Update
|
2023-06-12 19:25:34 +02:00
|
|
|
The second step is to update the package lists and install the data to the database, just run:
|
|
|
|
|
|
|
|
```
|
2023-06-13 19:56:10 +02:00
|
|
|
$ slpkg update
|
2023-06-12 19:25:34 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
Now you are ready to start!
|
|
|
|
|
2023-06-15 07:40:34 +02:00
|
|
|
# Install packages
|
|
|
|
|
2023-06-12 19:25:34 +02:00
|
|
|
To install a package, run:
|
|
|
|
|
|
|
|
```
|
2023-06-13 19:56:10 +02:00
|
|
|
$ slpkg install <package_name>
|
2023-06-12 19:25:34 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
or change the repository:
|
|
|
|
|
|
|
|
```
|
2023-06-13 19:56:10 +02:00
|
|
|
$ slpkg install <package_name> --repository=<repo_name>
|
2023-06-12 19:25:34 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
You can install a whole repository with the command:
|
|
|
|
|
|
|
|
```
|
2023-06-13 19:56:10 +02:00
|
|
|
$ slpkg install '*' --repository=<repository_name>
|
2023-06-12 19:25:34 +02:00
|
|
|
```
|
|
|
|
|
2023-06-15 07:40:34 +02:00
|
|
|
# Remove packages
|
|
|
|
|
2023-06-12 19:25:34 +02:00
|
|
|
To remove a package with the dependencies:
|
|
|
|
|
|
|
|
```
|
2023-06-13 19:56:10 +02:00
|
|
|
$ slpkg remove <package_name>
|
2023-06-12 19:25:34 +02:00
|
|
|
```
|
|
|
|
|
2023-06-15 07:40:34 +02:00
|
|
|
# Search for packages
|
|
|
|
|
2023-06-12 19:25:34 +02:00
|
|
|
If you want to search a package from all repositories, run:
|
|
|
|
|
|
|
|
```
|
2023-06-13 19:56:10 +02:00
|
|
|
$ slpkg search <package_name> --repository='*'
|
2023-06-12 19:25:34 +02:00
|
|
|
```
|
|
|
|
|
2023-06-15 07:40:34 +02:00
|
|
|
# Edit configuration
|
|
|
|
|
2023-06-12 19:25:34 +02:00
|
|
|
Edit the configuration `/etc/slpkg/slpkg.toml` file:
|
|
|
|
|
|
|
|
```
|
2023-06-13 19:56:10 +02:00
|
|
|
$ slpkg configs
|
2023-06-12 19:25:34 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
For further information, please read the manpage:
|
|
|
|
|
2023-06-15 07:40:34 +02:00
|
|
|
# Manpage
|
|
|
|
|
2023-06-12 19:25:34 +02:00
|
|
|
```
|
2023-06-13 19:56:10 +02:00
|
|
|
$ man slpkg
|
2023-06-12 19:25:34 +02:00
|
|
|
```
|