DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Ports and Packages

FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 14th August 2008
lumiwa lumiwa is offline
Package Pilot
 
Join Date: May 2008
Posts: 145
Thanked 4 Times in 3 Posts
Default KDE 4.1 - deinstall

Hi!

I decided to stay with KDE 3.5 and I want to remove 4.1 from the disk. I use portmaster to install 4.1. It is possible or are there option (I didn't find it) to use portmaster for deinstall KDE 4.1, please or just mahke deinstall?

Thanks in adbvance,

Mitja
Reply With Quote
  #2   (View Single Post)  
Old 14th August 2008
ninjatux's Avatar
ninjatux ninjatux is offline
Real Name: Baqir Majlisi
Spam Deminer
 
Join Date: May 2008
Location: Antarctica
Posts: 293
Thanked 15 Times in 15 Posts
Default

Check the portmaster manual page. I believe it is he -e switch.
__________________
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity."
MacBook Pro (Darwin 9), iMac (Darwin 9), iPod Touch (Darwin 9), Dell Optiplex GX620 (FreeBSD 7.1-STABLE)
Reply With Quote
  #3   (View Single Post)  
Old 14th August 2008
lumiwa lumiwa is offline
Package Pilot
 
Join Date: May 2008
Posts: 145
Thanked 4 Times in 3 Posts
Default

Quote:
Originally Posted by ninjatux View Post
Check the portmaster manual page. I believe it is he -e switch.
I tried this before and it doesn't work:

portmaster -e /usr/ports/x11/kde4

===>>> No such directory/port: /var/db/pkg//usr/ports/x11/kde4
===>>> Aborting update

Now I di:
make deinstall and it was okay and manually deleted /usr/local/kde4.

I hope that I didn't made a mess....
Reply With Quote
  #4   (View Single Post)  
Old 15th August 2008
ninjatux's Avatar
ninjatux ninjatux is offline
Real Name: Baqir Majlisi
Spam Deminer
 
Join Date: May 2008
Location: Antarctica
Posts: 293
Thanked 15 Times in 15 Posts
Default

You made a mess. kde4 is a meta-port. Removing it does absolutely nothing with respect to actual kde4 components and dependencies. You needed to run make deinstall on each of it's dependencies and components instead of deleting /usr/local/kde4. Now, you have a bunch of stale ports entries in /var/db/pkg that should not be there and possibly KDE 4.1 files that were not installed in /usr/local/kde4.

With respect to portmaster, it does work. You should read the manual page because it literally spells out how to use portmaster. Did you miss the following line at the beginning of the manual page?

Code:
 portmaster [Common Flags] Multiple full names or paths from /usr/ports or
                /var/db/pkg, and/or multiple globs from /var/db/pkg
     portmaster [Common Flags] -p port directory in /usr/ports
If you specify a port with reference to /usr/ports then you need to use the -p flag. portmaster defaults to port names in /var/db/pkg as do most other maintenance programs.

You could have done one of the following:

Code:
portmaster -e -p x11/kde4
OR

Code:
portmaster -e kde4
Again, the kde4 in the last example assumes that the entry in /var/db/pkg is called kde4. To verify that, you could have done:

Code:
ls -l /var/db/pkg/kde*
OR

Code:
pkg_info -x kde4
I recommend that you manually remove each of the kde4-related packages via ports now and then run the following command to CAREFULLY remove any UNNECESSARY dependencies.

Code:
portmaster -s
Good luck!
__________________
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity."
MacBook Pro (Darwin 9), iMac (Darwin 9), iPod Touch (Darwin 9), Dell Optiplex GX620 (FreeBSD 7.1-STABLE)

Last edited by ninjatux; 15th August 2008 at 03:55 PM.
Reply With Quote
  #5   (View Single Post)  
Old 15th August 2008
lumiwa lumiwa is offline
Package Pilot
 
Join Date: May 2008
Posts: 145
Thanked 4 Times in 3 Posts
Default

Quote:
Originally Posted by ninjatux View Post
You made a mess. kde4 is a meta-port. Removing it does absolutely nothing with respect to actual kde4 components and dependencies.
...
--

Good luck!
Each school cost something...

Thank you very much. I hope that I didn't "clean" more than I need ).
Reply With Quote
  #6   (View Single Post)  
Old 15th August 2008
ninjatux's Avatar
ninjatux ninjatux is offline
Real Name: Baqir Majlisi
Spam Deminer
 
Join Date: May 2008
Location: Antarctica
Posts: 293
Thanked 15 Times in 15 Posts
Default

I don't think that's an issue. I think you cleaned too little.
__________________
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity."
MacBook Pro (Darwin 9), iMac (Darwin 9), iPod Touch (Darwin 9), Dell Optiplex GX620 (FreeBSD 7.1-STABLE)
Reply With Quote
  #7   (View Single Post)  
Old 15th August 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Old man from scene 24
 
Join Date: Apr 2008
Location: Eindhoven, Netherlands
Posts: 2,069
Thanked 198 Times in 156 Posts
Default

One way to remove ports is using ports-mgmt/pkg_cutleaves.

Before you install a large meta-port with lots of dependencies you may want to uninstall (Such as KDE4) generate an exclude list (with -gl), when you want to uninstall just use # pkg_cutleaves -x and press `y' a lot of times (Or use the -V flag).

I deinstalled KDE4 in a few minutes this way.

You didn't generate an exclude list, but pkg_cutleaves is still usefull, you just need to be careful not to remove any useful ports (i.e. pay attention and not mindlessly press `y').
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #8   (View Single Post)  
Old 15th August 2008
tano tano is offline
Port Guard
 
Join Date: Jul 2008
Posts: 16
Thanked 1 Time in 1 Post
Default

In order to use portmaster, just first do

pkg_info -x kde4

make a note of the full name of kde4...

then do

portmaster -v -e kde4... where you put the right version.

This will automatically imply portmaster -s, you need to be careful not to say "yes" too often.
Reply With Quote
  #9   (View Single Post)  
Old 15th August 2008
lumiwa lumiwa is offline
Package Pilot
 
Join Date: May 2008
Posts: 145
Thanked 4 Times in 3 Posts
Default

Thank you to everyone...I like FreeBSD more and more...

Mitja
--------
http://starikarp.fotki.com
Reply With Quote
Old 21st August 2008
shinjii shinjii is offline
New User
 
Join Date: Jun 2008
Posts: 9
Thanked 0 Times in 0 Posts
Default

This relates to exactly what im having trouble with but in reverse, i want to remove the old KDE3 files but have all ready done a make deinstall in the kde3 port itself and then a pkg_delete on anything that was/had kde3* in it...

Killer is there are still so many things remaining and i want to use that use the kdelibs3 not vers 4 im in a pickle to either stay with 4 or revert back to KDE3 and wait a while for a lot more pkg's to be updated.

I dont use portmaster either.

Last edited by shinjii; 21st August 2008 at 07:42 AM.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Thoughts on "make deinstall clean" Mantazz FreeBSD Ports and Packages 8 14th September 2009 06:45 PM
ran make deinstall in /usr/ports/multimedia/ How do I undo this? kasse FreeBSD General 11 5th September 2008 08:22 AM


All times are GMT. The time now is 10:25 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick