[gentoo-user]How can i remove the xfce clearly?

2012-04-20 Thread 赵佳晖
I just install the xfce a few days ago, But i find i didn't like it . So i
want to remove it and install the Gnome . How can i remove the xfce clearly
?

-- 
好好学习,天天向上!!!


Re: [gentoo-user]How can i remove the xfce clearly?

2012-04-21 Thread Florian Philipp
Am 21.04.2012 05:27, schrieb 赵佳晖:
> I just install the xfce a few days ago, But i find i didn't like it . So
> i want to remove it and install the Gnome . How can i remove the xfce
> clearly ? 
> 
> -- 
> 好好学习,天天向上!!!

Gnome and Xfce share many libraries. Therefore it is best to install
Gnome first, before removing Xfce. Otherwise you will remove libraries
which you will later re-emerge for Gnome.

Then you need to configure your display manager (kdm, gdm, xdm) to use
Gnome instead of Xfce. Kdm and Gdm should allow you to do that directly
on the login screen.

When you are satisfied with Gnome, edit /var/lib/portage/world and
remove every line containing an Xfce package. Then run `emerge -av
--depclean` and you are done.

You could continue to remove config files but that is usually not worth
the trouble.

Hope this helps,
Florian Philipp



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user]How can i remove the xfce clearly?

2012-04-21 Thread 赵佳晖
Thank you for your answer , Philipp .I will tried it later

在 2012年4月21日 下午3:45,Florian Philipp 写道:

> Am 21.04.2012 05:27, schrieb 赵佳晖:
> > I just install the xfce a few days ago, But i find i didn't like it . So
> > i want to remove it and install the Gnome . How can i remove the xfce
> > clearly ?
> >
> > --
> > 好好学习,天天向上!!!
>
> Gnome and Xfce share many libraries. Therefore it is best to install
> Gnome first, before removing Xfce. Otherwise you will remove libraries
> which you will later re-emerge for Gnome.
>
> Then you need to configure your display manager (kdm, gdm, xdm) to use
> Gnome instead of Xfce. Kdm and Gdm should allow you to do that directly
> on the login screen.
>
> When you are satisfied with Gnome, edit /var/lib/portage/world and
> remove every line containing an Xfce package. Then run `emerge -av
> --depclean` and you are done.
>
> You could continue to remove config files but that is usually not worth
> the trouble.
>
> Hope this helps,
> Florian Philipp
>
>


-- 
好好学习,天天向上!!!


Re: [gentoo-user]How can i remove the xfce clearly?

2012-04-21 Thread Mick
On Saturday 21 Apr 2012 08:45:49 Florian Philipp wrote:
> Am 21.04.2012 05:27, schrieb 赵佳晖:
> > I just install the xfce a few days ago, But i find i didn't like it . So
> > i want to remove it and install the Gnome . How can i remove the xfce
> > clearly ?
> 
> Gnome and Xfce share many libraries. Therefore it is best to install
> Gnome first, before removing Xfce. Otherwise you will remove libraries
> which you will later re-emerge for Gnome.
> 
> Then you need to configure your display manager (kdm, gdm, xdm) to use
> Gnome instead of Xfce. Kdm and Gdm should allow you to do that directly
> on the login screen.
> 
> When you are satisfied with Gnome, edit /var/lib/portage/world and
> remove every line containing an Xfce package. Then run `emerge -av
> --depclean` and you are done.
> 
> You could continue to remove config files but that is usually not worth
> the trouble.

Also, follow the advice on the screen when you run 'emerge --depclean -p' 
which is to run revdep-rebuild afterward to rebuild any dependencies.  Such 
dependencies may have been broken from uninstalling packages with depclean,  
(man revdep-rebuild gives you more information).

-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user]How can i remove the xfce clearly?

2012-04-21 Thread 赵佳晖
OK,Thank you

在 2012年4月21日 下午5:20,Mick 写道:

> On Saturday 21 Apr 2012 08:45:49 Florian Philipp wrote:
> > Am 21.04.2012 05:27, schrieb 赵佳晖:
> > > I just install the xfce a few days ago, But i find i didn't like it .
> So
> > > i want to remove it and install the Gnome . How can i remove the xfce
> > > clearly ?
> >
> > Gnome and Xfce share many libraries. Therefore it is best to install
> > Gnome first, before removing Xfce. Otherwise you will remove libraries
> > which you will later re-emerge for Gnome.
> >
> > Then you need to configure your display manager (kdm, gdm, xdm) to use
> > Gnome instead of Xfce. Kdm and Gdm should allow you to do that directly
> > on the login screen.
> >
> > When you are satisfied with Gnome, edit /var/lib/portage/world and
> > remove every line containing an Xfce package. Then run `emerge -av
> > --depclean` and you are done.
> >
> > You could continue to remove config files but that is usually not worth
> > the trouble.
>
> Also, follow the advice on the screen when you run 'emerge --depclean -p'
> which is to run revdep-rebuild afterward to rebuild any dependencies.  Such
> dependencies may have been broken from uninstalling packages with depclean,
> (man revdep-rebuild gives you more information).
>
> --
> Regards,
> Mick
>



-- 
好好学习,天天向上!!!


Re: [gentoo-user]How can i remove the xfce clearly?

2012-04-21 Thread ny6p01
On Sat, Apr 21, 2012 at 09:45:49AM +0200, Florian Philipp wrote:
> Am 21.04.2012 05:27, schrieb ??:
> > I just install the xfce a few days ago, But i find i didn't like it . So
> > i want to remove it and install the Gnome . How can i remove the xfce
> > clearly ? 
> > 
> > -- 
> > 
> 
> Gnome and Xfce share many libraries. Therefore it is best to install
> Gnome first, before removing Xfce. Otherwise you will remove libraries
> which you will later re-emerge for Gnome.
> 
> Then you need to configure your display manager (kdm, gdm, xdm) to use
> Gnome instead of Xfce. Kdm and Gdm should allow you to do that directly
> on the login screen.
> 
> When you are satisfied with Gnome, edit /var/lib/portage/world and
> remove every line containing an Xfce package. Then run `emerge -av
> --depclean` and you are done.
> 
> You could continue to remove config files but that is usually not worth
> the trouble.
> 
> Hope this helps,
> Florian Philipp
> 


Do I understand you correctly that it is not necessary to run emerge
-unmerge first before removing the atoms from @world and running emerge
--depclean?

Terry



Re: [gentoo-user]How can i remove the xfce clearly?

2012-04-21 Thread Mick
On Saturday 21 Apr 2012 19:39:56 ny6...@gmail.com wrote:
> On Sat, Apr 21, 2012 at 09:45:49AM +0200, Florian Philipp wrote:
> > Am 21.04.2012 05:27, schrieb ??:
> > > I just install the xfce a few days ago, But i find i didn't like it .
> > > So i want to remove it and install the Gnome . How can i remove the
> > > xfce clearly ?
> > 
> > Gnome and Xfce share many libraries. Therefore it is best to install
> > Gnome first, before removing Xfce. Otherwise you will remove libraries
> > which you will later re-emerge for Gnome.
> > 
> > Then you need to configure your display manager (kdm, gdm, xdm) to use
> > Gnome instead of Xfce. Kdm and Gdm should allow you to do that directly
> > on the login screen.
> > 
> > When you are satisfied with Gnome, edit /var/lib/portage/world and
> > remove every line containing an Xfce package. Then run `emerge -av
> > --depclean` and you are done.
> > 
> > You could continue to remove config files but that is usually not worth
> > the trouble.
> > 
> > Hope this helps,
> > Florian Philipp
> 
> Do I understand you correctly that it is not necessary to run emerge
> -unmerge first before removing the atoms from @world and running emerge
> --depclean?
> 
> Terry

Yes.

The --depclean option will remove any packages that are not in 
/var/lib/portage/world and are not dependencies of other installed packages 
already in /var/lib/portage/world.
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user]How can i remove the xfce clearly?

2012-04-21 Thread Florian Philipp
Am 21.04.2012 20:39, schrieb ny6...@gmail.com:
> On Sat, Apr 21, 2012 at 09:45:49AM +0200, Florian Philipp wrote:
>> Am 21.04.2012 05:27, schrieb ??:
>>> I just install the xfce a few days ago, But i find i didn't like it . So
>>> i want to remove it and install the Gnome . How can i remove the xfce
>>> clearly ? 
>>>
>>> -- 
>>> 
>>
>> Gnome and Xfce share many libraries. Therefore it is best to install
>> Gnome first, before removing Xfce. Otherwise you will remove libraries
>> which you will later re-emerge for Gnome.
>>
>> Then you need to configure your display manager (kdm, gdm, xdm) to use
>> Gnome instead of Xfce. Kdm and Gdm should allow you to do that directly
>> on the login screen.
>>
>> When you are satisfied with Gnome, edit /var/lib/portage/world and
>> remove every line containing an Xfce package. Then run `emerge -av
>> --depclean` and you are done.
>>
>> You could continue to remove config files but that is usually not worth
>> the trouble.
>>
>> Hope this helps,
>> Florian Philipp
>>
> 
> 
> Do I understand you correctly that it is not necessary to run emerge
> -unmerge first before removing the atoms from @world and running emerge
> --depclean?
> 
> Terry
> 

Yes. I think it is also mentioned in the gentoo handbook. In fact, you
should not use --unmerge because it doesn't check dependencies before
removing the package.

If you want to delete a package only if no other package depends on it,
either remove it from world or use
`emerge -av --depclean `.
The latter has the advantage of also telling you what depends on it.

Regards,
Florian Philipp



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user]How can i remove the xfce clearly?

2012-04-21 Thread 赵佳晖
But it seems that the --depclean is a dangerous operate ??

在 2012年4月22日 上午7:15,Florian Philipp 写道:

> Am 21.04.2012 20:39, schrieb ny6...@gmail.com:
> > On Sat, Apr 21, 2012 at 09:45:49AM +0200, Florian Philipp wrote:
> >> Am 21.04.2012 05:27, schrieb ??:
> >>> I just install the xfce a few days ago, But i find i didn't like it .
> So
> >>> i want to remove it and install the Gnome . How can i remove the xfce
> >>> clearly ?
> >>>
> >>> --
> >>> 
> >>
> >> Gnome and Xfce share many libraries. Therefore it is best to install
> >> Gnome first, before removing Xfce. Otherwise you will remove libraries
> >> which you will later re-emerge for Gnome.
> >>
> >> Then you need to configure your display manager (kdm, gdm, xdm) to use
> >> Gnome instead of Xfce. Kdm and Gdm should allow you to do that directly
> >> on the login screen.
> >>
> >> When you are satisfied with Gnome, edit /var/lib/portage/world and
> >> remove every line containing an Xfce package. Then run `emerge -av
> >> --depclean` and you are done.
> >>
> >> You could continue to remove config files but that is usually not worth
> >> the trouble.
> >>
> >> Hope this helps,
> >> Florian Philipp
> >>
> >
> >
> > Do I understand you correctly that it is not necessary to run emerge
> > -unmerge first before removing the atoms from @world and running emerge
> > --depclean?
> >
> > Terry
> >
>
> Yes. I think it is also mentioned in the gentoo handbook. In fact, you
> should not use --unmerge because it doesn't check dependencies before
> removing the package.
>
> If you want to delete a package only if no other package depends on it,
> either remove it from world or use
> `emerge -av --depclean `.
> The latter has the advantage of also telling you what depends on it.
>
> Regards,
> Florian Philipp
>
>


-- 
好好学习,天天向上!!!


Re: [gentoo-user]How can i remove the xfce clearly?

2012-04-21 Thread Dale
赵佳晖 wrote:
> But it seems that the --depclean is a dangerous operate ??
> 

I use it quite often here.  It's like a knife, use it carefully.  Always
use the -a or -p option and check that it is not removing something I
want or need before letting it complete the removal.  I prefer the -a
option since it is faster.  If the list is correct, just hit "y" and let
it remove the unwanted packages.

Dale

:-)  :-)

-- 
I am only responsible for what I said ... Not for what you understood or
how you interpreted my words!

Miss the compile output?  Hint:
EMERGE_DEFAULT_OPTS="--quiet-build=n"



Re: [gentoo-user]How can i remove the xfce clearly?

2012-04-21 Thread ny6p01
On Sun, Apr 22, 2012 at 09:31:18AM +0800, ?? wrote:
> But it seems that the --depclean is a dangerous operate ??
> 
> ?? 2012??4??22?? 7:15??Florian Philipp ??
> 
> > Am 21.04.2012 20:39, schrieb ny6...@gmail.com:
> > > On Sat, Apr 21, 2012 at 09:45:49AM +0200, Florian Philipp wrote:
> > >> Am 21.04.2012 05:27, schrieb ??:
> > >>> I just install the xfce a few days ago, But i find i didn't like it .
> > So
> > >>> i want to remove it and install the Gnome . How can i remove the xfce
> > >>> clearly ?
> > >>>
> > >>> --
> > >>> 
> > >>
> > >> Gnome and Xfce share many libraries. Therefore it is best to install
> > >> Gnome first, before removing Xfce. Otherwise you will remove libraries
> > >> which you will later re-emerge for Gnome.
> > >>
> > >> Then you need to configure your display manager (kdm, gdm, xdm) to use
> > >> Gnome instead of Xfce. Kdm and Gdm should allow you to do that directly
> > >> on the login screen.
> > >>
> > >> When you are satisfied with Gnome, edit /var/lib/portage/world and
> > >> remove every line containing an Xfce package. Then run `emerge -av
> > >> --depclean` and you are done.
> > >>
> > >> You could continue to remove config files but that is usually not worth
> > >> the trouble.
> > >>
> > >> Hope this helps,
> > >> Florian Philipp
> > >>
> > >
> > >
> > > Do I understand you correctly that it is not necessary to run emerge
> > > -unmerge first before removing the atoms from @world and running emerge
> > > --depclean?
> > >
> > > Terry
> > >
> >
> > Yes. I think it is also mentioned in the gentoo handbook. In fact, you
> > should not use --unmerge because it doesn't check dependencies before
> > removing the package.
> >
> > If you want to delete a package only if no other package depends on it,
> > either remove it from world or use
> > `emerge -av --depclean `.
> > The latter has the advantage of also telling you what depends on it.
> >
> > Regards,
> > Florian Philipp

Many thanks.

Terry



Re: [gentoo-user]How can i remove the xfce clearly?

2012-04-22 Thread Florian Philipp
Am 22.04.2012 03:31, schrieb 赵佳晖:
> 在 2012年4月22日 上午7:15,Florian Philipp  >写道:
[...]
> Am 21.04.2012 20:39, schrieb ny6...@gmail.com :
> > Do I understand you correctly that it is not necessary to run emerge
> > -unmerge first before removing the atoms from @world and running
> emerge
> > --depclean?
> >
> > Terry
> >
> 
> Yes. I think it is also mentioned in the gentoo handbook. In fact, you
> should not use --unmerge because it doesn't check dependencies before
> removing the package.
> 
> If you want to delete a package only if no other package depends on it,
> either remove it from world or use
> `emerge -av --depclean `.
> The latter has the advantage of also telling you what depends on it.
> 
> Regards,
> Florian Philipp
> 
> But it seems that the --depclean is a dangerous operate ??

It is, but far less dangerous than --unmerge. depclean will only remove
packages when portage /thinks/ it is safe. unmerge will always remove
them, even if it breaks the system. Nevertheless, like Dale said, you
should be careful with depclean and use -a or -p with it. But if
depclean makes an error, there is usually something else wrong with your
system.

Regards,
Florian Philipp

P.S.: Please don't top-post. If your email client supports it, put your
responses below the text you quote (i.e. where I moved your response in
this mail). That makes reading long threads easier.



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user]How can i remove the xfce clearly?

2012-04-22 Thread Michael Scherer
not dangerous. only you need to look carefully at what depclean wants to delete.
as gentoo says, in some cases it could break dependencies needed by other 
software and
to avoid damage you should run revdep-rebuild, which scans all dependecies and 
reinstalls
them if it finds something is missing.
I use both regularly, especially after an emerge --update world and never had 
any real
trouble with it.

hope this eases your concerns a bit

michael

-- 
Michael Scherer
Univ.klinik f. Psychiatrie
email: michael.sche...@meduniwien.ac.at
phone: +43 6991 941 22 54

  - Original Message - 
  From: 赵佳晖 
  To: gentoo-user@lists.gentoo.org 
  Sent: Sunday, 22 April, 2012 03:31
  Subject: Re: [gentoo-user]How can i remove the xfce clearly?


  But it seems that the --depclean is a dangerous operate ??


  在 2012年4月22日 上午7:15,Florian Philipp 写道:

Am 21.04.2012 20:39, schrieb ny6...@gmail.com:

> On Sat, Apr 21, 2012 at 09:45:49AM +0200, Florian Philipp wrote:
>> Am 21.04.2012 05:27, schrieb ??:
>>> I just install the xfce a few days ago, But i find i didn't like it . So
>>> i want to remove it and install the Gnome . How can i remove the xfce
>>> clearly ?
>>>
>>> --
>>> 
>>
>> Gnome and Xfce share many libraries. Therefore it is best to install
>> Gnome first, before removing Xfce. Otherwise you will remove libraries
>> which you will later re-emerge for Gnome.
>>
>> Then you need to configure your display manager (kdm, gdm, xdm) to use
>> Gnome instead of Xfce. Kdm and Gdm should allow you to do that directly
>> on the login screen.
>>
>> When you are satisfied with Gnome, edit /var/lib/portage/world and
>> remove every line containing an Xfce package. Then run `emerge -av
>> --depclean` and you are done.
>>
>> You could continue to remove config files but that is usually not worth
>> the trouble.
>>
>> Hope this helps,
>> Florian Philipp
>>
>
>
> Do I understand you correctly that it is not necessary to run emerge
> -unmerge first before removing the atoms from @world and running emerge
> --depclean?
>
> Terry
>


Yes. I think it is also mentioned in the gentoo handbook. In fact, you
should not use --unmerge because it doesn't check dependencies before
removing the package.

If you want to delete a package only if no other package depends on it,
either remove it from world or use
`emerge -av --depclean `.
The latter has the advantage of also telling you what depends on it.

Regards,
Florian Philipp







  -- 
  好好学习,天天向上!!!


Re: [gentoo-user]How can i remove the xfce clearly?

2012-04-23 Thread Walter Dnes
On Sun, Apr 22, 2012 at 09:31:18AM +0800, ?? wrote
> But it seems that the --depclean is a dangerous operate ??

  I've built a script called "autodepclean" that runs "--pretend --depclean"
and filters the output to a separate script file "cleanscript".  You can
run "autodepclean" as a regular user, but "cleanscript" has to be run as
root.  Here is how I use it...

1) Run autodepclean.  It takes approximately 30 seconds on my machine.

2) Look at cleanscript with a text-editor, and delete lines that remove
programs you want to keep.

3) Run "cleanscript" as root.  It automatically runs "revdep-rebuild" at
the end.

  Note that "nano" is no longer a system requirement.  If you want the
"nano" editor, you need to include it in world.  I.e. "emerge nano".
The "autodepclean" script is attached to this post.

-- 
Walter Dnes 
#!/bin/bash
# autodepclean script v 0.03 released under GPL v3 by Walter Dnes 2012/01/16
# Generates a file "cleanscript" to remove unused ebuilds, including
# buildtime-only dependancies.
#
# Warning; this script is still beta.  I recommend that you check the output
# in cleanscript before running it.
#
# With the arrival of "virtual/editor", the script now suggests removing
# app-editors/nano, which may not be what you want.  If you want to keep
# nano, put it into world
#
# version 0.03 disables the removal of gentoo-sources.  Your current kernel
# is not always the most recent one in /usr/src.
#
echo "#!/bin/bash" > cleanscript
echo "#" >> cleanscript
emerge --pretend --depclean |\
  grep -A1 "^ .*/" |\
  grep -v "^ \*" |\
  grep -v "^--" |\
  sed ":/: {
N
s:\n::
s/selected: /-/
s/^ /emerge --depclean =/
}" | grep -v "gentoo-sources" >> cleanscript
echo "revdep-rebuild" >> cleanscript
chmod 744 cleanscript