{"id":15171855,"url":"https://github.com/thetechstech/system-installer","last_synced_at":"2025-10-01T06:32:08.613Z","repository":{"id":65412299,"uuid":"121065272","full_name":"TheTechsTech/system-installer","owner":"TheTechsTech","description":"Get the install command for the system package manager","archived":true,"fork":true,"pushed_at":"2020-12-22T17:54:51.000Z","size":68,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-15T12:12:04.648Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"arve0/system-install","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TheTechsTech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-10T23:53:48.000Z","updated_at":"2023-01-28T11:22:49.000Z","dependencies_parsed_at":"2023-01-22T07:45:16.019Z","dependency_job_id":null,"html_url":"https://github.com/TheTechsTech/system-installer","commit_stats":null,"previous_names":["techno-express/system-installer"],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheTechsTech%2Fsystem-installer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheTechsTech%2Fsystem-installer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheTechsTech%2Fsystem-installer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheTechsTech%2Fsystem-installer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheTechsTech","download_url":"https://codeload.github.com/TheTechsTech/system-installer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234837152,"owners_count":18894548,"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":[],"created_at":"2024-09-27T09:20:43.461Z","updated_at":"2025-10-01T06:32:08.345Z","avatar_url":"https://github.com/TheTechsTech.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"system-installer\n=======\n[![NPM](https://nodei.co/npm/system-installer.png)](https://nodei.co/npm/system-installer/)\n\n[![Dependencies Status](http://img.shields.io/david/techno-express/system-installer.svg)](https://david-dm.org/techno-express/system-installer) [![Node.js CI](https://github.com/techno-express/system-installer/workflows/Node.js%20CI/badge.svg)](https://github.com/techno-express/system-installer/actions) [![codecov](https://codecov.io/gh/techno-express/system-installer/branch/master/graph/badge.svg?token=nups0UsVPw)](https://codecov.io/gh/techno-express/system-installer) [![Maintainability](https://api.codeclimate.com/v1/badges/54f89d3ae887724ceb93/maintainability)](https://codeclimate.com/github/techno-express/system-install/maintainability) [![Release](http://img.shields.io/npm/v/system-installer.svg)](https://www.npmjs.org/package/system-installer)\n\n\u003e Get the install command or install a package using the system packaging manager, e.g. `sudo apt-get install` for Debian-based systems.\n\nThis package has been replaced with [node-sys](https://www.npmjs.com/package/node-sys).\n\n`system-installer` will try to find which system packaging is installed for the given `process.platform`. If no system package manager is found, `'your_package_manager install'` is returned.\n\n## Install\n\n```sh\nnpm install system-installer\n```\n\n## Usage\n\n### Node\n\n```js\nconst sysInstaller = require('system-installer').packager();\n/* - 'brew install' on OS X if homebrew is installed.\n * - 'sudo apt-get install' on debian platforms.\n * - 'sudo yum install' on red hat platforms.\n * - 'your_package_manager install' if no package manager is found.\n *\n * Throws if `process.platform` is none of darwin, freebsd, linux, sunos or win32.\n */\n\nconsole.log(`Please install pandoc: ${sysInstaller.installerCommand} pandoc`);\n```\n\n### Install `vim` package onto host, using system's default package manager\n\n* Returns a Promise\n\n```sh\nconst sysInstaller = require('system-installer').installer;\nsysInstaller('vim')\n.then(function(data){\n    // returns installation output\n    console.log(data);\n})\n.catch(function(err) {\n    console.log(err);\n});\n```\n\n### CLI\n\n```sh\n$ npm i -g system-installer\n$ system-installer\nbrew install\n```\n\n## Supported package managers\n\n### FreeBSD\n- [pkg]\n- [pkg_add]\n\n### Linux\n- [apt-get] - Debian, Ubuntu\n- [dnf] - fedora\n- [emerge] - Gentoo\n- [nix] - NixOS\n- [pacman] - ArchLinux\n- [yum] - fedora\n- [zypper] - OpenSUSE\n- [chromebrew] - Chrome OS\n\n### OS X\n- [brew]\n- [pkgin]\n- [port]\n\n### Solaris\n- [pkg](https://docs.oracle.com/cd/E23824_01/html/E21802/gihhp.html)\n\n### Windows\n- [chocolatey]\n\n[apt-get]: https://help.ubuntu.com/community/AptGet/Howto\n[brew]: http://brew.sh\n[pacman]: https://wiki.archlinux.org/index.php/pacman\n[yum]: https://fedoraproject.org/wiki/Yum\n[dnf]: https://fedoraproject.org/wiki/Dnf\n[nix]: https://nixos.org/nix/\n[zypper]: https://en.opensuse.org/Portal:Zypper\n[emerge]: https://wiki.gentoo.org/wiki/Portage\n[port]: https://guide.macports.org/#using.port\n[pkgin]: https://github.com/cmacrae/saveosx\n[pkg]: https://www.freebsd.org/doc/handbook/pkgng-intro.html\n[pkg_add]: https://www.freebsd.org/cgi/man.cgi?query=pkg_add\u0026manpath=FreeBSD+7.2-RELEASE\n[chocolatey]: https://chocolatey.org\n[chromebrew]: https://github.com/skycocker/chromebrew\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthetechstech%2Fsystem-installer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthetechstech%2Fsystem-installer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthetechstech%2Fsystem-installer/lists"}