It is an easy and fast tool to install your packages with just one command.
In portuguese, Trouxa means something like a "bundle of clothes", but it is also a pejorative term like mug or muggle. Thinking in the first meaning, why not let this bundle carry Packages too? (It does not make sense, I know lol)
With trouxa, you can install many packages just noting it in a file, packages.txt
.
Example of packages.txt
python
vim
nano
Selecting the package manager used on your system, and and run it selecting the path of packages.txt
trouxa -m pacman -p ~/packages.txt
If the file has the same name as packages.txt
and in the actual execution directory, you do not need to specify it because this is the default value for -p
.
trouxa -m pacman
You can use also a remote packages' list to install you tools
trouxa -m pacman -p https://pastebin.com/raw/ysHUVswx
To build you will need the Go
environment in version 1.18
and make
installed.
make build
sudo make install
The binary compiled will be copied to your /usr/bin
and available through the command trouxa in your terminal
- apk
- apt
- aptitude
- dnf
- eopkg
- pacman
- snap
- yay
- yum
- zypper
You can list all packages from a Alpine container, as exemple, and use this "dump" to install in another:
apk info > packages.txt
The same is true to pacman
.
pacman -Qe | sed -e 's/\s.*$//' > packages.txt