Re: Deinstalling X and all dependencies[SOLVED]

2008-07-28 Thread bsd

I have opted for the:

pkg_delete -a

Which has done a great job cleaning everything.
Only had to make clean in one of the port directory to properly  
recompile all needed apps.


As I had configured root to use /usr/local/bin/bash had to take care  
to change that with vipw before doing the uninstall / reinstall.



Took me half a day for three servers… But at least I have a very clean  
install with 30 ports instead of 250 !!



Thanks everybody for your wise answers.


Le 27 juil. 08 à 15:17, andrew clarke a écrit :


On Sun 2008-07-27 12:52:56 UTC+0200, bsd ([EMAIL PROTECTED]) wrote:

I have just received a new system that's planned to be a large  
scale DNS

server.
I have asked the guy who has setup the hardware not to install X?

This has been useless!!

I am now ending up with 250 apps in the port tree!!


He probably just went with the defaults.


Is there a good way to get rid of all these useless apps without
breaking the system?
What would you suggest?

Like removing X and It's dependencies?


I can also remove all apps in the port tree and recompile only the  
one

needed?

What's best what do you suggest.


FreeBSD provides a base system with software such as a SSH daemon,
Sendmail, BIND, etc.  You can uninstall all the packages on your
system, but the FreeBSD base system will still remain.  This allows
FreeBSD to boot normally without any packages installed.

I recommend you uninstall all packages (with 'pkg_delete -a', or
'pkg_delete -av' if you want to watch all the files being deleted),
then install only what you need from the Ports tree.

Your DNS server should probably not require any packages to be
installed, as DNS server software (BIND) is provided with the FreeBSD
base system.  But that really depends what your requirements are.

Regards
Andrew



Gregober --- PGP ID -- 0x1BA3C2FD
bsd @at@ todoo.biz


P Please consider your environmental responsibility before printing  
this e-mail



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Deinstalling X and all dependencies

2008-07-27 Thread bsd

Hello,

I have just received a new system that's planned to be a large scale  
DNS server.

I have asked the guy who has setup the hardware not to install X…

This has been useless!!

I am now ending up with 250 apps in the port tree!!

Is there a good way to get rid of all these useless apps without  
breaking the system…

What would you suggest?

Like removing X and It's dependencies…


I can also remove all apps in the port tree and recompile only the one  
needed…




What's best what do you suggest.




I'd rather do painful jobs now than in 6 months when everything will  
be up and running !!



Thanks.


Gregober --- PGP ID -- 0x1BA3C2FD
bsd @at@ todoo.biz


P Please consider your environmental responsibility before printing  
this e-mail



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Deinstalling X and all dependencies

2008-07-27 Thread N. Raghavendra
At 2008-07-27T12:52:56+02:00, bsd wrote:

 Is there a good way to get rid of all these useless apps without
 breaking the system… What would you suggest?

One way is to use the `ports-mgmt/pkg_cutleaves' port to iteratively
remove the superfluous leaves of your package tree.  It can also be
done with `ports-mgmt/portmanager' (with the -slid option) or
`ports-mgmt/portmaster' (with the -s option).

Raghavendra.

-- 
N. Raghavendra [EMAIL PROTECTED] | http://www.retrotexts.net/
Harish-Chandra Research Institute   | http://www.mri.ernet.in/
See message headers for contact and OpenPGP information.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Deinstalling X and all dependencies

2008-07-27 Thread Bernt Hansson

bsd :

Hello,

I have just received a new system that's planned to be a large scale DNS 
server.

I have asked the guy who has setup the hardware not to install X…

This has been useless!!


Better doing it your self.


I am now ending up with 250 apps in the port tree!!

Is there a good way to get rid of all these useless apps without 
breaking the system…

What would you suggest?


pkg_delete *

This will remove ALL packages installed.

It has worked for me in the past but be careful!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Deinstalling X and all dependencies

2008-07-27 Thread RW
On Sun, 27 Jul 2008 12:52:56 +0200
bsd [EMAIL PROTECTED] wrote:

 Hello,
 
 I have just received a new system that's planned to be a large scale  
 DNS server.
 I have asked the guy who has setup the hardware not to install X___
 
 This has been useless!!
 
 I am now ending up with 250 apps in the port tree!!
 
 Is there a good way to get rid of all these useless apps without  
 breaking the system___

If you want to remove X you can use  a leaf-cutting tool like
ports-mgmt/pkg_cutleaves.

But I would have thought that a dns server would require only very few
ports (possibly even zero if you use the default BIND), so it might
be simpler to start over.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Deinstalling X and all dependencies

2008-07-27 Thread andrew clarke
On Sun 2008-07-27 12:52:56 UTC+0200, bsd ([EMAIL PROTECTED]) wrote:

 I have just received a new system that's planned to be a large scale DNS 
 server.
 I have asked the guy who has setup the hardware not to install X?

 This has been useless!!

 I am now ending up with 250 apps in the port tree!!

He probably just went with the defaults.

 Is there a good way to get rid of all these useless apps without  
 breaking the system?
 What would you suggest?

 Like removing X and It's dependencies?


 I can also remove all apps in the port tree and recompile only the one  
 needed?

 What's best what do you suggest.

FreeBSD provides a base system with software such as a SSH daemon,
Sendmail, BIND, etc.  You can uninstall all the packages on your
system, but the FreeBSD base system will still remain.  This allows
FreeBSD to boot normally without any packages installed.

I recommend you uninstall all packages (with 'pkg_delete -a', or
'pkg_delete -av' if you want to watch all the files being deleted),
then install only what you need from the Ports tree.

Your DNS server should probably not require any packages to be
installed, as DNS server software (BIND) is provided with the FreeBSD
base system.  But that really depends what your requirements are.

Regards
Andrew
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Deinstalling X and all dependencies

2008-07-27 Thread Polytropon
On Sun, 27 Jul 2008 23:17:44 +1000, andrew clarke [EMAIL PROTECTED] wrote:
 On Sun 2008-07-27 12:52:56 UTC+0200, bsd ([EMAIL PROTECTED]) wrote:
 
  I have just received a new system that's planned to be a large scale DNS 
  server.
  I have asked the guy who has setup the hardware not to install X?
 
  This has been useless!!
 
  I am now ending up with 250 apps in the port tree!!

In or from? If they are in the ports tree but not installed,
don't mind. If they are installed, deinstall them as recommended,
using pkg_delete for example.



  I can also remove all apps in the port tree and recompile only the one  
  needed?
 
  What's best what do you suggest.
 
 FreeBSD provides a base system with software such as a SSH daemon,
 Sendmail, BIND, etc.  You can uninstall all the packages on your
 system, but the FreeBSD base system will still remain.  This allows
 FreeBSD to boot normally without any packages installed.

Very well you mentioned this - this difference between base OS
and installable packages is one of the most important features
of FreeBSD to me.

Having said this, all the additional software (from ports or from
packages) reside within /usr/local; everything outside /usr/local
belongs to the OS.

This means you can

# rm -rf /usr/local
# mtree -f /etc/mtree/BSD.local.dist

and then start installing the software you want. The base system
won't be affected at all.

# cd /usr/ports/category/port
# make install package clean

or

# pkg_add -r what you want

So you end up only with the things you intendedly install (including
the needed dependencies).

This is the way I did setup a 5.X system many years ago which died
this month due to a problem killing various inodes... :-(



 I recommend you uninstall all packages (with 'pkg_delete -a', or
 'pkg_delete -av' if you want to watch all the files being deleted),
 then install only what you need from the Ports tree.

You can, of course, just deinstall the packages you know you won't
need, but as you said, if there are more than 250 of them installed
(related to X, maybe Gnome or KDE, too), it's easier to invest some
time and build from scratch, just as you need.



 Your DNS server should probably not require any packages to be
 installed, as DNS server software (BIND) is provided with the FreeBSD
 base system.

See? Everything there from the base install. :-)



 But that really depends what your requirements are.

Exactly.


-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]