spk / ruby-apt-pkg

Ruby interface to Debian apt-pkg

Home Page:http://www.rubydoc.info/gems/apt-pkg

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Ruby interface to Debian apt-pkg

http://www.rubydoc.info/gems/apt-pkg

License:MIT License


Languages

Language:C++ 59.6%Language:Ruby 39.7%Language:C 0.8%