slpkg/docs/how_to_start/index.md

54 lines
1,007 B
Markdown
Raw Normal View History

2023-06-13 20:54:16 +03:00
# How to start
2023-06-12 20:25:34 +03: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.
The second step is to update the package lists and install the data to the database, just run:
```
2023-06-13 20:56:10 +03:00
$ slpkg update
2023-06-12 20:25:34 +03:00
```
Now you are ready to start!
To install a package, run:
```
2023-06-13 20:56:10 +03:00
$ slpkg install <package_name>
2023-06-12 20:25:34 +03:00
```
or change the repository:
```
2023-06-13 20:56:10 +03:00
$ slpkg install <package_name> --repository=<repo_name>
2023-06-12 20:25:34 +03:00
```
You can install a whole repository with the command:
```
2023-06-13 20:56:10 +03:00
$ slpkg install '*' --repository=<repository_name>
2023-06-12 20:25:34 +03:00
```
To remove a package with the dependencies:
```
2023-06-13 20:56:10 +03:00
$ slpkg remove <package_name>
2023-06-12 20:25:34 +03:00
```
If you want to search a package from all repositories, run:
```
2023-06-13 20:56:10 +03:00
$ slpkg search <package_name> --repository='*'
2023-06-12 20:25:34 +03:00
```
Edit the configuration `/etc/slpkg/slpkg.toml` file:
```
2023-06-13 20:56:10 +03:00
$ slpkg configs
2023-06-12 20:25:34 +03:00
```
For further information, please read the manpage:
```
2023-06-13 20:56:10 +03:00
$ man slpkg
2023-06-12 20:25:34 +03:00
```