Whenever I set up Linux on a new computer, I always have my configuration ready to go, since I keep my configuration files synced in a GitHub repo. However, while I can easily get vim and zsh settings up and running, I always find myself reinstalling a whole bunch of apt packages.
Because of this, I wanted to make a sort of Cargo.toml
, or requirements.txt
that works in conjucntion with apt. This can be used personally, or in projects
that may require certain programs to be installed.
In its current phase, the project is limited, though very simple. I hope to extend it to include more apt setup commands, and also at some point branch out to other packaged managers, like pacman, yaourt, etc.
The basic flow for using apt.rs is creating a Packages.toml
file
with entries for all of your required dependencies. Apt.rs will look for
different sections (note in a toml
file, a section looks like this: [section_name]
):
[dependencies]
: These are the actual package names/versions to install. Each entry is the package name, followed by either a version code or"*"
for the newest available version.[ppas]
: Some packages may come from external PPAs. Apt.rs will add these first, and then run the dependency install phase afterwards.