Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

38 views
Skip to first unread message

赵佳晖

unread,
Apr 20, 2012, 11:30:01 PM4/20/12
to
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 ? 

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

Florian Philipp

unread,
Apr 21, 2012, 3:50:01 AM4/21/12
to
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

赵佳晖

unread,
Apr 21, 2012, 4:20:02 AM4/21/12
to
Thank you for your answer , Philipp .I will tried it later
--
好好学习,天天向上!!!

Mick

unread,
Apr 21, 2012, 5:30:02 AM4/21/12
to
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

赵佳晖

unread,
Apr 21, 2012, 7:00:03 AM4/21/12
to
OK,Thank you
--
好好学习,天天向上!!!

ny6...@gmail.com

unread,
Apr 21, 2012, 2:50:02 PM4/21/12
to
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

Mick

unread,
Apr 21, 2012, 3:20:01 PM4/21/12
to
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

Florian Philipp

unread,
Apr 21, 2012, 7:20:02 PM4/21/12
to
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 <package_name>`.
The latter has the advantage of also telling you what depends on it.

Regards,
Florian Philipp

signature.asc

赵佳晖

unread,
Apr 21, 2012, 9:40:02 PM4/21/12
to
But it seems that the --depclean is a dangerous operate ??
--
好好学习,天天向上!!!

Dale

unread,
Apr 21, 2012, 10:10:01 PM4/21/12
to
赵佳晖 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"

ny6...@gmail.com

unread,
Apr 22, 2012, 2:10:01 AM4/22/12
to
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 <li...@binarywings.net>??????
Many thanks.

Terry

Florian Philipp

unread,
Apr 22, 2012, 7:40:02 AM4/22/12
to
Am 22.04.2012 03:31, schrieb 赵佳晖:
> 在 2012年4月22日 上午7:15,Florian Philipp <li...@binarywings.net
> <mailto:li...@binarywings.net>>写道:
[...]
> Am 21.04.2012 20:39, schrieb ny6...@gmail.com <mailto: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 <package_name>`.
> 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

Michael Scherer

unread,
Apr 22, 2012, 2:20:02 PM4/22/12
to
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...@meduniwien.ac.at
phone: +43 6991 941 22 54

Walter Dnes

unread,
Apr 23, 2012, 3:30:02 PM4/23/12
to
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 <walt...@waltdnes.org>
autodepclean
0 new messages