public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-portage-dev] Undo feature in portage-ng ?
@ 2004-06-02 20:27 humbaba
  2004-06-02 21:10 ` hmhansolo gentoo
  2004-06-03  2:22 ` Hasan Khalil
  0 siblings, 2 replies; 8+ messages in thread
From: humbaba @ 2004-06-02 20:27 UTC (permalink / raw
  To: gentoo-portage-dev

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-portage-dev] Undo feature in portage-ng ?
  2004-06-02 20:27 [gentoo-portage-dev] Undo feature in portage-ng ? humbaba
@ 2004-06-02 21:10 ` hmhansolo gentoo
  2004-06-08 22:13   ` humbaba
  2004-06-03  2:22 ` Hasan Khalil
  1 sibling, 1 reply; 8+ messages in thread
From: hmhansolo gentoo @ 2004-06-02 21:10 UTC (permalink / raw
  To: gentoo-portage-dev

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-portage-dev] Undo feature in portage-ng ?
  2004-06-02 20:27 [gentoo-portage-dev] Undo feature in portage-ng ? humbaba
  2004-06-02 21:10 ` hmhansolo gentoo
@ 2004-06-03  2:22 ` Hasan Khalil
  1 sibling, 0 replies; 8+ messages in thread
From: Hasan Khalil @ 2004-06-03  2:22 UTC (permalink / raw
  To: gentoo-portage-dev

I am going to begin work (soon) on implementing a system to monitor a 
given directory for file changes, additions, etc. and perform a 
user-defined action on the added/changed/etc file immediately. This 
system could theoretically be used in conjunction with a local CVS 
repository (a CVS mirror of /etc, for example) to provide the 
functionality you are looking for, I think. More details can be made 
available by request either to the list or on a per-person basis; 
whatever you guys (and girls) want.

Aside from that, if the official portage dev team wants to include 
something like this backup system in future releases of portage (or 
portage-ng), I'm willing to take a shot at solving this problem. In the 
last few minutes several thoughts have already come to mind on how to 
solve this, but I'm still not sure if it's really desirable as a 
capability of emerge. Let me know, and I'll begin serious brainstorming.

	-Hasan

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-portage-dev] Undo feature in portage-ng ?
  2004-06-02 21:10 ` hmhansolo gentoo
@ 2004-06-08 22:13   ` humbaba
  2004-06-08 22:22     ` Md Mooktakim Ahmed
  2004-06-09  0:04     ` Nicolás Echániz
  0 siblings, 2 replies; 8+ messages in thread
From: humbaba @ 2004-06-08 22:13 UTC (permalink / raw
  To: gentoo-portage-dev


> 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

I know that. But when you install some metabuild like kde you cannot just emerge unmerge kde.
So it would be nice to have a feature to record the changes a certain (meta) ebuild makes, so you can later undo them.

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-portage-dev] Undo feature in portage-ng ?
  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
  1 sibling, 1 reply; 8+ messages in thread
From: Md Mooktakim Ahmed @ 2004-06-08 22:22 UTC (permalink / raw
  To: gentoo-portage-dev


Or maybe a snapshot feature for /etc (using CVS type technology) so that go-back feature
is available.
The snapshot should be done at every installation of a package.

>
>> 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
>
> I know that. But when you install some metabuild like kde you cannot just emerge unmerge
> kde.
> So it would be nice to have a feature to record the changes a certain (meta) ebuild
> makes, so you can later undo them.
>
> --
> gentoo-portage-dev@gentoo.org mailing list
>
>


-- 
Website: http://www.mooktakim.com
email: Mooktakim@hotmail.com

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-portage-dev] Undo feature in portage-ng ?
  2004-06-08 22:13   ` humbaba
  2004-06-08 22:22     ` Md Mooktakim Ahmed
@ 2004-06-09  0:04     ` Nicolás Echániz
  2004-06-09  0:51       ` Joseph Booker
  1 sibling, 1 reply; 8+ messages in thread
From: Nicolás Echániz @ 2004-06-09  0:04 UTC (permalink / raw
  To: gentoo-portage-dev

# emerge unmerge thissocoolapplication
does not unmerge the dependencies that were installed along with the 
application, does it?

What I usually do is look into /var/log/emerge.log to see what 
dependencies were installed when I installed thissocoolapplication and 
unmerge them all. This could be done automatically, but would only be 
approppriate if you were unmerging something you just emerged. 
Otherwise, you could unmerge a library that is a dependency to some 
other package that was installed later.


humbaba@gmx.net wrote:

>>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
>>    
>>
>
>I know that. But when you install some metabuild like kde you cannot just emerge unmerge kde.
>So it would be nice to have a feature to record the changes a certain (meta) ebuild makes, so you can later undo them.
>
>--
>gentoo-portage-dev@gentoo.org mailing list
>
>
>  
>

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-portage-dev] Undo feature in portage-ng ?
  2004-06-09  0:04     ` Nicolás Echániz
@ 2004-06-09  0:51       ` Joseph Booker
  0 siblings, 0 replies; 8+ messages in thread
From: Joseph Booker @ 2004-06-09  0:51 UTC (permalink / raw
  To: gentoo-portage-dev


Nicolás Echániz said:
> # emerge unmerge thissocoolapplication
> does not unmerge the dependencies that were installed along with the
> application, does it?
>
> What I usually do is look into /var/log/emerge.log to see what
> dependencies were installed when I installed thissocoolapplication and
> unmerge them all. This could be done automatically, but would only be
> approppriate if you were unmerging something you just emerged.
> Otherwise, you could unmerge a library that is a dependency to some
> other package that was installed later.

emerge -v thissocoolapplication

<brings in plenty of deps not used by another package, and adds
thiscoolapplication to the world file>

emerge -v --unmerge thiscoolapplicaton

<removes thiscoolapplication from the comp and the world file>

emerge -v depclean

<lists things broughtin but no longer found to be needed>

genlop -lunr|tail

<lists recently installed stuff>

emerge -v --unmerge <apps emerged before thiscoolapplication and not
needed according to depclean>

-- 
 Joe Booker

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-portage-dev] Undo feature in portage-ng ?
  2004-06-08 22:22     ` Md Mooktakim Ahmed
@ 2004-06-09  7:33       ` Sven Vermeulen
  0 siblings, 0 replies; 8+ messages in thread
From: Sven Vermeulen @ 2004-06-09  7:33 UTC (permalink / raw
  To: gentoo-portage-dev

[-- Attachment #1: Type: text/plain, Size: 1315 bytes --]

On Tue, Jun 08, 2004 at 11:22:09PM +0100, Md Mooktakim Ahmed wrote:
> Or maybe a snapshot feature for /etc (using CVS type technology) so that 
> go-back feature is available.
> The snapshot should be done at every installation of a package.

Shouldn't be that difficult to implement, not even with the current Portage.
But first get acquainted with RCS (emerge app-text/rcs) which is useful for
text files (such as configuration files).

What you can do as well is to have FEATURES="buildpkg" enabled and take a
snapshot of your Portage tree before you update it. Then update the Portage
tree and your system. If things fail, reinstate the snapshot and update your
system once again. IIRC, Portage should automatically 'downgrade' your
system to the previous state. By using the binaries created before
downgrading doesn't take that much time.

One small hickup though: configuration files! So it's still wise to keep the
important ones in RCS.

Wkr,
      Sven Vermeulen

-- 
 Bent Hindrup Andersen, Danish MEP, about the Software Patent Directive:
    The approach of the Commission and Council in this directive is shocking. 
    They are making full use of all the possibilities of evading democracy that 
    the current Community Law provides.     <http://lwn.net/Articles/84009/>

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2004-06-09  7:34 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-02 20:27 [gentoo-portage-dev] Undo feature in portage-ng ? humbaba
2004-06-02 21:10 ` hmhansolo gentoo
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox