https://github.com/kpenfound/rpmac
A rpm based package manager for Mac
https://github.com/kpenfound/rpmac
mac macos package-manager rpm
Last synced: about 2 months ago
JSON representation
A rpm based package manager for Mac
- Host: GitHub
- URL: https://github.com/kpenfound/rpmac
- Owner: kpenfound
- License: mit
- Created: 2020-11-09T19:10:38.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2020-11-13T21:01:03.000Z (over 4 years ago)
- Last Synced: 2024-06-19T15:07:59.612Z (11 months ago)
- Topics: mac, macos, package-manager, rpm
- Language: Go
- Homepage: https://rpmac.io
- Size: 115 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rpmac
A rpm based package manager for MacHashiCorp Engineering Services Hackathon 2020
## Commands
### Add repo```bash
rpmac add-repo ${PWD}/{file}.repo
```### Search for a package
```bash
rpmac search {package}
```### Install a package
```bash
rpmac install {package} {anotherPackage=1.0.0}
```### Uninstall a package
```bash
rpmac uninstall {package}
```### Upgrade a package
```bash
rpmac upgrade {package}
```## Functionality
### Repo management
- [x] Download metadata files from remote repos
- [x] Read information from metadata files
- [x] Store package information in local cache### Package management
- [x] Install rpm file by name from cached metadata
- [x] Track installed packages
- [x] Install a specific version of a package
- [x] Install package dependencies
- [ ] Reconcile dependency versions and dependency graph
- [ ] Process install/uninstall hooks
- [ ] Global upgrade### General
- [x] Lock during operations### Functional Commands
- [x] Help
- [x] Add Repo
- [x] Install
- [x] Uninstall
- [x] Search
- [x] Upgrade## Testing
```bash
go build
```### Run test repo
```bash
make test-repo
```This will set up a test repo on a local webserver. The repo file will be available at `http://localhost/test.repo`. Once that's added, the local repo should be visible to rpmac
### Add repo
```bash
./rpmac add-repo ${PWD}/test/repo/test.repo
```### Search for a package
```bash
./rpmac search kpfoo
```### Install a package
```bash
./rpmac install kpfoo
```### Uninstall a package
```bash
./rpmac uninstall kpfoo
```### Upgrade a package
```bash
./rpmac install kpfoo=1.1.0
./rpmac upgrade kpfoo
```