[gentoo-user] Unmerge KDE script

2006-06-22 Thread Mick

Hi All,

I am trying to unmerge KDE 3.4 using the script below and it comes up
with an error.
=
for x in `ls /usr/portage/kde-base`; do
 if [ $x != CVS ]; then
echo -n =kde-base/$x-3.4* 
 fi
done |xargs emerge -Cv
=

The error is:
=
# ./unmerge-kde.sh
--- Couldn't find '=kde-base/akode-3.4*' to unmerge
=

How do I get over this problem?
--
Regards,
Mick
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Unmerge KDE script

2006-06-22 Thread Bo Ørsted Andresen
On Thursday 22 June 2006 13:46, Mick wrote:
 I am trying to unmerge KDE 3.4 using the script below and it comes up
 with an error.
[SNIP]

 How do I get over this problem?

Use this instead:

cd /var/db/pkg  emerge -Cva kde-base/*-3.4*

-- 
Bo Andresen


pgpaqsW971xYC.pgp
Description: PGP signature


Re: [gentoo-user] Unmerge KDE script

2006-06-22 Thread Bo Ørsted Andresen
On Thursday 22 June 2006 14:12, Neil Bothwick wrote:
 Because it doesn't try to remove anything by explicit version number, it
 won't have the sort of error you found.

Well actually the big difference is that you are using the list of installed 
packages from the kde-base category whereas he is using the complete list of 
packages in /usr/portage/kde-base and assuming that everyone of them have a 
3.4* version. He may not even have akode installed...

-- 
Bo Andresen


pgpmNRLLd0U7W.pgp
Description: PGP signature


Re: [gentoo-user] Unmerge KDE script

2006-06-22 Thread Dirk Heinrichs
Am Donnerstag, 22. Juni 2006 13:46 schrieb ext Mick:
 Hi All,

 I am trying to unmerge KDE 3.4 using the script below and it comes up
 with an error.

What about emerge --unmerge kde  emerge -a --depclean  
revdep-rebuild ?

Bye...

Dirk
-- 
Dirk Heinrichs  | Tel:  +49 (0)162 234 3408
Configuration Manager   | Fax:  +49 (0)211 47068 111
Capgemini Deutschland   | Mail: [EMAIL PROTECTED]
Hambornerstra�e 55  | Web:  http://www.capgemini.com
D-40472 D�sseldorf  | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: www.keyserver.net


pgpGGjRJzRx9F.pgp
Description: PGP signature


Re: [gentoo-user] Unmerge KDE script

2006-06-22 Thread Neil Bothwick
On Thu, 22 Jun 2006 14:18:51 +0200, Bo Ørsted Andresen wrote:

 Well actually the big difference is that you are using the list of
 installed packages from the kde-base category whereas he is using the
 complete list of packages in /usr/portage/kde-base and assuming that
 everyone of them have a 3.4* version. He may not even have akode
 installed...

Ah yes, I missed that he was using /usr/portage instead of /var/db, it
never occurred to me that anyone would try to do that :(

I wasn't trying to use /usr/portage, I prefer to feed the currently
installed packages to emerge --prune, but your method looks good too.


-- 
Neil Bothwick

Tribble math: * + * = ***


signature.asc
Description: PGP signature


Re: [gentoo-user] Unmerge KDE script

2006-06-22 Thread Bo Ørsted Andresen
On Thursday 22 June 2006 15:03, Dirk Heinrichs wrote:
 What about emerge --unmerge kde  emerge -a --depclean 
 revdep-rebuild ?

This assumes that kde was the only package that he added to the world file. If 
he wants to do something like this the following would make more sense:

# emerge --clean --verbose --ask `awk -F/ '$1~/^kde-base$/{print}'  \
/var/lib/portage/world`  emerge --depclean --verbose --ask  \
revdep-rebuild --ignore --pretend -- --verbose

Also --unmerge instead of --clean (or --prune) would result in kde 3.5 to be 
removed too.

-- 
Bo Andresen


pgpMAQstumwz4.pgp
Description: PGP signature


Re: [gentoo-user] Unmerge KDE script

2006-06-22 Thread Mick

On 22/06/06, Bo Ørsted Andresen [EMAIL PROTECTED] wrote:

On Thursday 22 June 2006 15:03, Dirk Heinrichs wrote:
 What about emerge --unmerge kde  emerge -a --depclean 
 revdep-rebuild ?

This assumes that kde was the only package that he added to the world file. If
he wants to do something like this the following would make more sense:

# emerge --clean --verbose --ask `awk -F/ '$1~/^kde-base$/{print}'  \
/var/lib/portage/world`  emerge --depclean --verbose --ask  \
revdep-rebuild --ignore --pretend -- --verbose

Also --unmerge instead of --clean (or --prune) would result in kde 3.5 to be
removed too.


Thank you all for your replies.  I have not installed KDE 3.5 yet.  I
am just trying to remove monolithic 3.4 first.
--
Regards,
Mick

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Unmerge KDE script

2006-06-22 Thread Bo Ørsted Andresen
On Thursday 22 June 2006 15:31, Mick wrote:
 Thank you all for your replies.  I have not installed KDE 3.5 yet.  I
 am just trying to remove monolithic 3.4 first.

In that case you can replace --clean (or --prune) with --unmerge. You had a 
look at [1]?

The original error was because you didn't have akode installed. /var/db/pkg 
contains only the packages you have installed whereas /usr/portage contains 
everything. equery --list outputs only what you have installed by default.

Finally you should know that because kde is slotted you do not have to remove 
kde-3.4 before installing kde-meta-3.5. But you have to remove it before 
installing kde-meta-3.4. Monolithic and split packages block each other only 
within the same slot.

In general it helps to tell us what you want to achieve from the beginning. It 
enables us to tell you what you want to do rather that what you think you 
want to do. ;)

[1] http://www.gentoo.org/doc/en/kde-config.xml

-- 
Bo Andresen


pgp2DJg4utmu6.pgp
Description: PGP signature


Re: [gentoo-user] Unmerge KDE script

2006-06-22 Thread Mick

On 22/06/06, Bo Ørsted Andresen [EMAIL PROTECTED] wrote:


In that case you can replace --clean (or --prune) with --unmerge. You had a
look at [1]?


One worked nicely thank you.  :-)


Finally you should know that because kde is slotted you do not have to remove
kde-3.4 before installing kde-meta-3.5. But you have to remove it before
installing kde-meta-3.4. Monolithic and split packages block each other only
within the same slot.


Thanks.  I know, but this is on a space constrained laptop.  Removing
3.4 altogether should do me nicely.


In general it helps to tell us what you want to achieve from the beginning. It
enables us to tell you what you want to do rather that what you think you
want to do. ;)


Not a good enough excuse, but was typing all this in-between meetings
at work today.  3.4 monolithic has now been removed and I am starting
to emerge 3.5 meta.
--
Regards,
Mick

--
gentoo-user@gentoo.org mailing list