Goal of this project is to have a proper Ruby binding to APT like in Python.
Currently install, remove packages commands are not implemented.
apt install build-essential ruby-dev libapt-pkg-dev (>= 1.0)
gem install apt-pkg
Basic usage:
require'debian/apt_pkg'# Initialize the configuration and system of aptDebian::AptPkg.init# Update the index files used by the cacheDebian::AptPkg::PkgCache.update# List packages stored in the cacheDebian::AptPkg::PkgCache.packages# List installed packagesDebian::AptPkg::PkgCache.packages.select{ |pkg| pkg.is_installed}rake compilerake testThe MIT License
Copyright (c) 2014-2020 Laurent Arnoud laurent@spkdev.net