NAME

roguepkg - Find rogue files and create packages.


SYNOPSIS

roguepkg [ options ] [ path ... ]


OPTIONS

-?, -h, -help
Print a brief help message and exit.

-V, -version
Print the program version and exit.

-b basename, -basename basename
Specify a package basename. Default is ``rogue-package''.

-d directory, -dest directory
Where to put the package-files. Default is the current directory.

-x dir, -exclude dir
Exclude a directory from being searched. May be used more than once.

-X file, -exclude-from file
Read a list of excluded directories from file.

-q, -quiet
Be less verbose.

-v, -verbose
Be more verbose. Use twice for extra verbosity.


ADVANCED OPTIONS

-diff difference
How much time-difference, in seconds, to allow between files before considering them as belonging to different packages. Default is 10.

-installed-dump-from dumpfile
Read index of installed files from dumpfile, instead of indexing the packages installed in the system.

-installed-dump-to dumpfile
After indexing the packages installed in the system, dump the index to dumpfile. This is useful for speeding up subsequent runs of roguepkg, by reading in the index with -installdump-from.

-maxage timedelta
Only create packages newer than timedelta, where timedelta is a timespan given in the format ``<weeks>w<days>d<hours>h<minutes>m<seconds>s''. For example, ``2d4h'' is two days and four hours, and ``3h30m'' is three hours and thirty minutes.

-minage timedelta
Only create packages older than timedelta, where timedelta is a timespan given in the format ``<weeks>w<days>d<hours>h<minutes>m<seconds>s''. For example, ``5w1d'' is five weeks and one day, and ``1w6h'' is one week and six hours.

-minfiles number_of_files
The minimum number of files required to make a package. Default is 1.

-nofollow
By default, roguepkg will follow symlinks and use the ctime of the target for the symlink instead. With -nofollow symlinks will use their own ctime, which means that symlinks that weren't installed with their targets will end up in their own packages. Broken symlinks always use their own ctime.

-root directory
Use a directory other than / (the default) as the root of the filesystem to search on. Can also be set with the environment variable ROOT. This is useful for example when you have mounted another slackware root-partition somewhere.


DESCRIPTION

roguepkg will search the given path(s) for files not installed with the slackware package management system. If no paths are given, the directories /bin, /boot, /etc, /lib, /opt, /sbin, and /usr are used as default.

roguepkg does this by looking for files on the system that are not in the slackware package database. (``rogue files'')

It then tries to identify files that were installed together by grouping them on their ctime. (inode change time) If two files have ctime's of more than 10 seconds apart, and no other files with a ctime inbetween, they are considered as belonging to different packages.

This isn't always accurate, but most often good enough. You can change the default time difference (10 seconds) with the -diff option.

roguepkg then creates packagefiles in the destination directory for each of these packages. The destination directory is by default the current directory (.), but it can be changed with the -dest (-d) option.

The packages will each be named with the ctime date and time of the first file in the package in YYYYMMDD_HHMMSS format, suffixed by a number for uniqueness if needed, and prefixed with the string ``rogue-package''. This prefix can be changed with the option -basename (-b).


EXAMPLES

roguepkg -d /tmp -minfiles 3 -diff 30


CHANGES

  1. 0.9.4
    Added parameters -maxage and -minage.


AUTHOR

Christoffer Hammarström, <kreiger@telia.com>


SEE ALSO

installpkg(8), removepkg(8), upgradepkg(8), pkgtool(8), makepkg(8), explodepkg(8).

perl.