Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vinc/pkg
A wrapper around package managers
https://github.com/vinc/pkg
apt homebrew package-manager pacman pkg
Last synced: 3 months ago
JSON representation
A wrapper around package managers
- Host: GitHub
- URL: https://github.com/vinc/pkg
- Owner: vinc
- License: mit
- Created: 2017-11-20T14:21:14.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-12-07T23:42:50.000Z (about 1 year ago)
- Last Synced: 2024-04-15T14:06:36.675Z (10 months ago)
- Topics: apt, homebrew, package-manager, pacman, pkg
- Language: Shell
- Homepage:
- Size: 4.88 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pkg(8) - a wrapper around package managers
When you have MacOS on your work computer, Arch Linux on your home computer,
and Ubuntu on your home server, you might enjoy using `pkg`, a thin wrapper
around `brew`, `pacman`, and `apt` respectively, that will offer you a common
interface and save you some keystrokes.## Installation
$ wget https://raw.githubusercontent.com/vinc/pkg/master/pkg.sh
$ sudo cp pkg.sh /usr/local/bin/pkg
$ sudo chmod a+x /usr/local/bin/pkg## Usage
### With system package managers
Let say you use Arch Linux on your local computer and Debian on a remote
server.You would type `pacman -Ss foo` on the former to search a package named `foo`
and `apt search foo` or `apt-cache search foo` on the latter.And you would type `sudo pacman -S foo` to install it on Arch and
`sudo apt install foo` or `sudo apt-get install foo` on Debian.With `pkg` you can search a package on both systems with:
$ pkg search foo
And install it with:
$ sudo pkg install foo
Or you could even type `pkg s foo` and `sudo pkg i foo` to save a few
keystrokes.### With language package managers
You may use some language package managers, like `npm` or `pip`, in addition
to the system one. No worries, `pkg` go you covered:$ pkg --with npm install foo
With `pkg` you won't have to remember to type `npm uninstall foo` with `npm`
but `yarn remove foo` with `yarn`, or `sudo pacman -R foo` on Arch Linux but
`sudo apt remove foo` on Ubuntu. Just type the most obvious command and it
will get corrected or passed on.License
-------Copyright (c) 2017-2018 Vincent Ollivier. Released under MIT.