# Apt-cgi-1.0

**URL:** <https://www.ruby-forum.com/t/apt-cgi-1-0/94053>\
**Category:** Ruby\
**Created:** [April 19, 2006, 7:05am UTC](https://www.ruby-forum.com/t/apt-cgi-1-0/94053 "2006-04-19T07:05:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [April 19, 2006, 7:05am UTC](https://www.ruby-forum.com/t/apt-cgi-1-0/94053/1 "2006-04-19T07:05:00Z")

</div>

Hi,

== Abstract  
w3m local CGI of APT.  
Package names are hyperlinked, so you can navigate freely.

((\<apt-sary|URL:[http://www.rubyist.net/~rubikitch/computer/apt-sary/](http://www.rubyist.net/~rubikitch/computer/apt-sary/)\>))  
makes it much faster.

=== Examples

w3m apt:grep # apt-cache search grep  
w3m apt-show:grep # apt-cache show grep  
w3m apt-file:grep # apt-file search grep

It is available at  
[http://www.rubyist.net/~rubikitch/computer/apt-cgi/index.en.html](http://www.rubyist.net/~rubikitch/computer/apt-cgi/index.en.html)

== What’s new

=== [2006/04/19] 1.0 released  
Initial release

== Install  
Please execute the following commands.

ruby -ropen-uri -e  
‘URI(“[http://www.rubyist.net/~rubikitch/archive/apt-cgi-1.0.tar.gz](http://www.rubyist.net/~rubikitch/archive/apt-cgi-1.0.tar.gz)”).read.display’

> apt-cgi-1.0.tar.gz  
> tar xzvf apt-cgi-1.0.tar.gz

When you failed, please download it from the next link.

- 

((\<apt-cgi-1.0.tar.gz|URL:[http://www.rubyist.net/~rubikitch/archive/apt-cgi-1.0.tar.gz](http://www.rubyist.net/~rubikitch/archive/apt-cgi-1.0.tar.gz)\>))

=== Install auxiliary library

sudo ruby setup.rb

=== Install apt.cgi and urimethodmap

- Locate apt.cgi in /cgi-bin directory, which are shown by issuing `grep cgi_bin ~/.w3m/config`.
- Add following lines to ~/.w3m/urimethodmap.  
apt: file:/cgi-bin/apt.cgi?cmd=search&arg=%s  
apt-search: file:/cgi-bin/apt.cgi?cmd=search&arg=%s  
apt-show: file:/cgi-bin/apt.cgi?cmd=show&arg=%s  
apt-file: file:/cgi-bin/apt.cgi?cmd=file\_search&arg=%s
