Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions pages/linux/installpkg.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# installpkg

> Install a Slackware package.
> More information: <http://www.slackware.com/config/packages.php>.

- Install a package:

`sudo installpkg {{path/to/package.tgz}}`

- Generate a report of a simulated installation to `stdout`:

`installpkg -warn {{path/to/package.tgz}}`

- Create a package from current directory and its subdirectories:

`installpkg -m {{package_name.tgz}}`

- Install the contents of the current directory and subdirectories as a package with a specified name:

`sudo installpkg -r {{package_name.tgz}}`
24 changes: 24 additions & 0 deletions pages/linux/removepkg.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# removepkg

> Remove a specified Slackware package.
> More information: <http://www.slackware.com/config/packages.php>.

- Remove a package:

`sudo removepkg {{package_name}}`

- Generate a report of a simulated removal to `stdout`:

`removepkg -warn {{package_name}}`

- Reconstruct the package subtree in `/tmp/preserved_packages/package_name` and remove the package:

`sudo removepkg -preserve {{package_name}}`

- Copy package under `/tmp/preserved_packages/package_name` without removing:

`removepkg -copy {{package_name}}`

- Save temporary files created by `removepkg` for debugging:

`sudo removepkg -keep {{package_name}}`
Loading