The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

demerge - Revert to previous installation states.

VERSION

This document refers to version 0.048 of demerge

SYNOPSIS

demerge [option]...

DESCRIPTION

Using demerge you can easily record and restore your system state.

ARGUMENTS

  --comment [ comment ]        Add comment to state for your convenience.

  --do                         Do not ask user to confirm actions - just do it.

  --dir [ directory ]          Select directory to store/get demerge data.

  -h, --help                   Show options.

  -k, --usepkg                 Pass -k to emerge so that binary packages
                               will be used when available. When enabling this option
                               demerge will also create binpkgs of packages before
                               removing them.
                               (Note: Currently --usepkg is not useflag aware. So no matter what
                               useflags were set in the system-state portage will install
                               the binpkg as is.)

  -C, --nocolor                Turn off colors.

  --record                     Records which packages are installed on this system.

  --restore [ timestamp ]      Restores previous recorded system-state of the given timestamp.

  --restore-previous           Restores previous recorded system-state.

  --wipe [ timestamp ]         Remove all/given system-states.

  --wipe-older [ timestamp ]   Remove all recorded system-states that are
                               older than the given timestamp.

CONFIGURATION FILE

Rather than calling demerge with the --dir, --usepkg and --nocolor parameter you can also use the /etc/demerge.conf configuration file to change the location where demerge stores and expects its data.

To make demerge use the directory /var/lib/demerge instead of /root/.demerge:

# echo 'datadir=/var/lib/demerge' >> /etc/demerge.conf

To make demerge use the --usepgk option by default:

# echo 'usepkg=yes' >> /etc/demerge.conf

To disable colors:

# echo 'nocolor=true' >> /etc/demerge.conf

AUTHOR

Christian Hartmann <ian@gentoo.org>

CONTRIBUTORS

Many thanks go out to all the people listed below:

Wernfried Haas <amne@gentoo.org>

Tobias Scherbaum <dertobi123@gentoo.org>

Kalin Kozhuharov <me.kalin@gmail.com>

Michael Cummings <mcummings@gentoo.org>

Raul Porcel <armin76@gentoo.org>

pille <pille@struction.de>

LICENSE

demerge - Revert to previous installation states. Copyright (C) 2007 Christian Hartmann

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 2 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, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA