Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dnkmmr69420/brew-user
A seperate user that manages homebrew
https://github.com/dnkmmr69420/brew-user
brew homebrew package-manager
Last synced: about 1 month ago
JSON representation
A seperate user that manages homebrew
- Host: GitHub
- URL: https://github.com/dnkmmr69420/brew-user
- Owner: dnkmmr69420
- Created: 2024-04-04T14:51:36.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-08-16T21:01:51.000Z (5 months ago)
- Last Synced: 2024-10-25T03:48:05.398Z (3 months ago)
- Topics: brew, homebrew, package-manager
- Language: Shell
- Homepage:
- Size: 61.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Also check out [Brew Container](https://github.com/dnkmmr69420/brew-container)
# brew-user
A seperate user that manages homebrew. This would be useful for systems that have multiple users so there would be a user that has the privelege to manage homebrew.
All users can execute programs installed with brew but can't make any changes in the brew directory except for brew user and of course root (which shouldn't be used for homebrew)
# Overview
Brew should work like normal but executing the command would be a little different. These commands use the sudo password.## Three commands are added
- `brewsh` run this to enter a shell in the brew user
- `ebrew` execute commands with privleges of the brew user (Now fixed)
- `sbrew` runs the `brew` command as brew. Works the same way as the brew command so args and flags would be the same as brew
The `brew` command can be used for things that don't require writing data (like listing packages). If you want to install, uninstall, or update packages, The `sbrew` command is needed.
## Installation
Run this in the terminal
```bash
curl -s https://raw.githubusercontent.com/dnkmmr69420/brew-user/main/curl.sh | bash
```## Uninstallation
Run this to remove homebrew and its other files
```bash
curl -s https://raw.githubusercontent.com/dnkmmr69420/brew-user/main/uninstall.sh | bash
```# Known issues and workarounds
### homebrew can't read working directory
Workaround: Type `cd /` to change to a workdir that is readable to the brew user.### Not compatable with macos
I don't even have a mac to test this on so if you do, feel free to fork this and make it compatable with macos