{"id":17501337,"url":"https://github.com/vinc/pkg","last_synced_at":"2025-04-23T03:18:26.941Z","repository":{"id":137714276,"uuid":"111419916","full_name":"vinc/pkg","owner":"vinc","description":"A wrapper around package managers","archived":false,"fork":false,"pushed_at":"2023-12-07T23:42:50.000Z","size":5,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-23T03:18:21.680Z","etag":null,"topics":["apt","homebrew","package-manager","pacman","pkg"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vinc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-20T14:21:14.000Z","updated_at":"2024-04-15T06:08:17.000Z","dependencies_parsed_at":"2023-12-08T00:38:40.023Z","dependency_job_id":null,"html_url":"https://github.com/vinc/pkg","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinc%2Fpkg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinc%2Fpkg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinc%2Fpkg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinc%2Fpkg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vinc","download_url":"https://codeload.github.com/vinc/pkg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250360509,"owners_count":21417721,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apt","homebrew","package-manager","pacman","pkg"],"created_at":"2024-10-19T19:45:00.532Z","updated_at":"2025-04-23T03:18:26.917Z","avatar_url":"https://github.com/vinc.png","language":"Shell","readme":"# pkg(8) - a wrapper around package managers\n\nWhen you have MacOS on your work computer, Arch Linux on your home computer,\nand Ubuntu on your home server, you might enjoy using `pkg`, a thin wrapper\naround `brew`, `pacman`, and `apt` respectively, that will offer you a common\ninterface and save you some keystrokes.\n\n\n## Installation\n\n    $ wget https://raw.githubusercontent.com/vinc/pkg/master/pkg.sh\n    $ sudo cp pkg.sh /usr/local/bin/pkg\n    $ sudo chmod a+x /usr/local/bin/pkg\n\n\n## Usage\n\n### With system package managers\n\nLet say you use Arch Linux on your local computer and Debian on a remote\nserver.\n\nYou would type `pacman -Ss foo` on the former to search a package named `foo` \nand `apt search foo` or `apt-cache search foo` on the latter.\n\nAnd you would type `sudo pacman -S foo` to install it on Arch and\n`sudo apt install foo` or `sudo apt-get install foo` on Debian.\n\nWith `pkg` you can search a package on both systems with:\n\n    $ pkg search foo\n\nAnd install it with:\n\n    $ sudo pkg install foo\n\nOr you could even type `pkg s foo` and `sudo pkg i foo` to save a few\nkeystrokes.\n\n### With language package managers\n\nYou may use some language package managers, like `npm` or `pip`, in addition\nto the system one. No worries, `pkg` go you covered:\n\n    $ pkg --with npm install foo\n\nWith `pkg` you won't have to remember to type `npm uninstall foo` with `npm`\nbut `yarn remove foo` with `yarn`, or `sudo pacman -R foo` on Arch Linux but\n`sudo apt remove foo` on Ubuntu. Just type the most obvious command and it\nwill get corrected or passed on.\n\n\nLicense\n-------\n\nCopyright (c) 2017-2018 Vincent Ollivier. Released under MIT.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvinc%2Fpkg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvinc%2Fpkg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvinc%2Fpkg/lists"}