Skip to content

vifon/one

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

NAME

One - a unified interface for apt, dpkg etc.

SYNOPSIS

one command [ command_arguments ... ]

one [ -- ] packages_to_install ...

DESCRIPTION

One Tool to manage them all, One Tool to find them,
One Tool to install them all and in the darkness run them

One provides a unified interface for Debian package manager which is quite fragmented (dpkg, aptitude, apt-get, apt-cache, apt-file...). Just one simple extensible tool combining the most frequently used functions of the mentioned tools. The available functions are fully customizable - One can even be adjusted to a completely different package manager.

GOALS

  • a single central program to run each command (no need to remember when we should use apt-get instead of aptitude)

  • simple and flexible configuration

  • as little overhead as possible - no output parsing etc., just a simple exec

  • no custom commands by default - uses only the well-tested standard Debian commands

  • short commands inspired by the equery tool in Gentoo

OPTIONS

(blank) packages

Install the specified packages.

Command: sudo aptitude install

b package

Install build-dependencies of a package.

Command: sudo aptitude build-dep

src package

Download the source code of a package.

Command: apt-get source

s search_term

Search in the package database.

Command: aptitude search

i package

Show the package details.

Command: aptitude show

f search_term

Search for packages containing matching files.

Command: apt-file search

F regex

Search for packages containing matching files.

Command: apt-file search -x

l package

List files owned by the package (which must be installed).

Command: dpkg -L

L package

List files owned by the package (which must not be installed).

Command: apt-file list

o file

Show which package owns the file.

Command: dpkg -S

w package

Show why the package was installed.

Command: aptitude why

u

Perform system upgrade.

Command: sudo aptitude update && sudo aptitude upgrade

uu

Perform full system upgrade.

Command: sudo aptitude update && sudo aptitude full-upgrade

rm packeges

Remove the specified packages.

Command: sudo aptitude purge

CONFIG

The config file ~/.onerc has a very simple syntax:

name arbitrary_command_to_run
# comment

For the default "s" option it would be

s aptitude search

The separator between name and arbitrary_command_to_run can be any whitespace character.

The existing commands can be overridden but keep in mind there are two special commands: "--" which is used for the blank command (package install by default) and "TUI" which is used when One is run without any arguments (interactive aptitude interface by default).

AUTHOR

One was written by Wojciech 'vifon' Siewierski <darkvifon at gmail dot com>.

COPYRIGHT

Copyright (C) 2012 Wojciech Siewierski

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

About

A unified interface for apt, dpkg etc.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages