PMT is a lightweight command-line tool designed to facilitate the translation of package names between different package managers on Linux distributions, such as apt or dnf. Whether you're migrating projects or managing dependencies across different Linux distributions, PMT aims to simplify the process.
- Package Manager Compatibility: Translate package names between different package managers on Linux distributions seamlessly.
- Simple Command-Line Interface: Just install as you would with any distribution.
- Minimal Dependencies: Lightweight and efficient, PMT aims to keep dependencies to a minimum.
Instalation with golang package manager.
go install github.com/ericchiang/pup@latest
go install github.com/charmbracelet/gum@latest
go install github.com/sethigeet/watcher@latest
To build and install PMT, you can use the make
tool. Use the following commands:
make
make install # Install globally
make install USR=$HOME/.local # Install only for the current user
The make
command will automatically compile PMT, and the make install
command will install it according to the specified options.
TODO
To translate package names, just enter command of target package managers.
pmt <package-manager> <install-command> <packages...>
For example when fedora is target OS:
pmt apt install i3-wm bash
# translate to
sudo dnf install i3 bash
Isn't it cool?
PMT currently supports the following package managers on Linux distributions:
- apt-get (Debian, Devuan)
- dnf (Fedora)
Package managers for future:
- apt (Ubuntu repositories)
- pacman (Arch, Manjaro)
- apk (Alpine)
- brew (macOS or Linux)
- xbps (Void)
- zypper (openSUSE)
- nix-env (Nix)
- eopkg (Solus)
-h
,--help
: Display help message and exit.-v
,--version
: Display version information.-n
,--dry-run
: Translate without installing.-y
,--yes
: Enable automatic yes to prompts.
TODO
Given that the project is under development, expect some translation mistakes. Your contribution to improving PMT is welcome! If you encounter any issues, have feature requests, or wish to contribute enhancements, please don't hesitate to submit an issue or pull request.
I thank Jesus Christ that I have a laptop, time and opportunities to work on this project. And also to everyone who supports or is interested in this project.
Thank you for using PMT! If you have any questions or feedback, feel free to reach out. Happy translating! 🚀