public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: hmhansolo gentoo <hmhansolo_gentoo@elitemail.org>
To: gentoo-portage-dev@lists.gentoo.org
Subject: Re: [gentoo-portage-dev] Undo feature in portage-ng ?
Date: Wed, 02 Jun 2004 14:10:43 -0700	[thread overview]
Message-ID: <1086210643.8626.9.camel@localhost> (raw)
In-Reply-To: <20040602222708.3efc11ef@localhost>

Yo,
	If you mean uninstalling an installed application, then portage is
capable of that. After you emerge something as such:
emerge thissocoolapplication -v
all you have to do to undo the changes that the above command made is
this:
emerge unmerge thissocoolapplication -v
.

Notice a few things. emerge unmerge does not remove files from
cfgprotected directed such as /etc or /lib/modules/*/ and there are some
others.. so those files will have to be removed manually.. they will
show up as a "--- cfgpro NAMEOFFILE" listing in the output of the
uninstall command.. those are the ones u have to manually remove.. on
the other hand.. u could just change the environment variable
'CONFIG_PROTECT', to empty.. and then "emerge unmerge":
export CONFIG_PROTECT=""
emerge unmerge ...

if u go to /var/db/pkg, you can see all the info for all the packages
installed, like what files were installed and other cool stuff

alternatively.. u can install gentoolkit which installs the qpkg
command, which can be used to query information about installed and not
yet installed packages via.. "qpkg -l PACKAGENAME"




now if u mean recording the entire state of the filesystem that has been
installed by portage at some point (like an emerge snapshot) and
reverting back to that snapshot from some other point of time.. well..
that hasn't been done..


--31337357 313373 93n700 H4(|<3|2
--hmhansolo

On Wed, 2004-06-02 at 13:27, humbaba@gmx.net wrote:
> Hi
> I was wandering whether the are plans to implement a kind of undo function in portage-ng or even portage.
> It would be very nice to have an option in emerge wich makes portage to record all the changes that are done during an emerge, so you can later undo this changes.
> Somthing like:
> emerge kde-3.2 --record-changes-in /path/to/file
> and when you want get back to the previour version/state of system:
> emerge --undo-changes /path/to/file
> 
> I hope this is the right place to ask for such things. When it is not (please let me know), I appolozise.
> 
> Thanks
> 
> --
> gentoo-portage-dev@gentoo.org mailing list
> 

--
gentoo-portage-dev@gentoo.org mailing list


  reply	other threads:[~2004-06-02 21:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-02 20:27 [gentoo-portage-dev] Undo feature in portage-ng ? humbaba
2004-06-02 21:10 ` hmhansolo gentoo [this message]
2004-06-08 22:13   ` humbaba
2004-06-08 22:22     ` Md Mooktakim Ahmed
2004-06-09  7:33       ` Sven Vermeulen
2004-06-09  0:04     ` Nicolás Echániz
2004-06-09  0:51       ` Joseph Booker
2004-06-03  2:22 ` Hasan Khalil

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1086210643.8626.9.camel@localhost \
    --to=hmhansolo_gentoo@elitemail.org \
    --cc=gentoo-portage-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox