Content-type: text/html Manpage of installdb

installdb

Section: CodingSluts (8)
Updated: 6 September 2001
Index Return to Main Contents
 

NAME

installdb - cleansweep for linux  

SYNOPSIS

installdb [options]  

DESCRIPTION

installdb installdb is a package management system that works independant of package type (tarballs, rpms, debian packages, whatever). It tracks down all installed files and stores all the packages information in its database. Those packages can be queried, uninstalled and verified. A package consists of a list of files, description, name, version, size and other information.

There are a set of modes: Install, Query, Verify, Uninstall, Build, Rebuild, Kill and Edit.

Install mode:
installdb -i <package_log>+

Query mode:
installdb -q [query-options]

Verify mode:
installdb -V [verify-options]

Uninstall mode:
installdb -u [install-mode] <package_name>+

Kill mode:
installdb -k <package_name>+

Rebuild mode:
installdb -r [query-options]

Edit mode:
installdb -e add/rem [query-options] <files>

 

GENERAL OPTIONS

These options can be used in all the different modes.
-v
Verbose mode, verbose mode prints some extra information.
-h
Print a usage message and exits.

 

INSTALL OPTIONS

The general form of an installdb install command is


        installdb -i <install_log>+

This installs a package from the recorded install_log. Use installit to create the install_log file, the usage of installit is pretty basic:

       installit [-x] <install_log> <command>

Installit asks for general information about the package: name, version and description. If you specified -x then all those fall back to the default values. After that it prepares the installlog, installs the module and starts the command. The module is a wrapper for the file-creation calls and logs everything to the installlog.

 

UNINSTALL OPTIONS

The general form of an installdb uninstall command is


        installdb -u [install-options] <packagename>+

This removes a package from your system.

-v
Works as interactive mode for uninstall. This means that the user gets asked whether or not a file should be removed from the system

       installdb -k <packagename>+

Removes the package from the database without removing the files.

 

QUERY OPTIONS

The general form of an installdb query command is


        installdb -q [query-options]

Package selection options:

<package_name>
Query installed package named <package_name>.
-a
Query all installed packages
-f <file>
Query package owning <file>.

Information selection options:

-i
Display package information, including name, version, and description.
-l
List files in package.
-u
Displays a usage counter, the usage of the package is calcuated from the atimes of the files in it. Beware: atime is set everytime the file is accessed, even installdbs verify mode changes it and will reset the counter.

 

VERIFY OPTIONS

The general form of an installdb verify command is


        installdb -V [query-options]

Verifying a package compares information about the installed files in the package with information about the files taken from the original package and stored in the installdb database. Among other things, verifying compares the size, MD5 sum, permissions, type, owner and group of each file. Any discrepencies are displayed. The package specification options are the same as for package querying.

A single "." (period) means the test passed. The following characters denote failure of certain tests:

5
MD5 sum
S
File size
M
Mtime
U
User
G
Group
P
Mode (includes permissions and file type)

 

REBUILD OPTIONS

The general form of an installdb rebuild command is


        installdb -r [query-options]

The rebuild mode updates the file information to represent the current status of the files. The package specification options are the same as for package querying.

 

EDIT MODE

The general form of an installdb edit command is

               installdb -e add/rem [query-options] <files>

The edit mode allows you to add or remove files from a previously created package. There are several restrictions to this command. You can only specify one query for all files. You can't add a file to all packages, seems rather silly to me (if you really need it for something, let me know). All the files have to include the path otherwise it won't work.
For example installdb -e add links /usr/bin/links will add the file '/usr/bin/links' to the package 'links' and installdb -e rem -f /usr/bin/links /usr/bin/links will remove '/usr/bin/links' from all packages containing it. You can use the -a ('all' query) with remove only.

 

AUTHORS

Tom Haber <lamagra@digibel.org>


 

Index

NAME
SYNOPSIS
DESCRIPTION
GENERAL OPTIONS
INSTALL OPTIONS
UNINSTALL OPTIONS
QUERY OPTIONS
VERIFY OPTIONS
REBUILD OPTIONS
EDIT MODE
AUTHORS

This document was created by man2html, using the manual pages.
Time: 12:20:04 GMT, May 18, 2002