Project

apt-pkg

0.01
No release in over 3 years
Low commit activity in last 3 years
Ruby interface to apt-pkg
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 5.13
~> 13.0
 Project Readme

Ruby interface to apt-pkg

Goal of this project is to have a proper Ruby binding to APT like in Python.

Currently install, remove packages commands are not implemented.

INSTALL

apt install build-essential ruby-dev libapt-pkg-dev (>= 1.0)
gem install apt-pkg

USING

Basic usage:

require 'debian/apt_pkg'

# Initialize the configuration and system of apt
Debian::AptPkg.init

# Update the index files used by the cache
Debian::AptPkg::PkgCache.update

# List packages stored in the cache
Debian::AptPkg::PkgCache.packages

# List installed packages
Debian::AptPkg::PkgCache.packages.select { |pkg| pkg.is_installed }

Documentation

BUILD

rake compile

TEST

rake test

LICENSE

The MIT License

Copyright (c) 2014-2020 Laurent Arnoud laurent@spkdev.net


Build Version Documentation License Project status