How to reconfigure all installed ports?

Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software).

How to reconfigure all installed ports?

Postby Blackbird » 05 Jul 2010, 12:05

Hi,

I'm coming from Gentoo and are totally new to FreeBSD ports system...

What I want is, to reconfigure all installed ports and rebuild/reinstall them afterwards.

That is, because if I want to install a port, I just make it, and leave all configure options as they are... I'm a bit impatient... :e
And later on, I want to reconfigure them thoughtfully.

So, how to do that? Can I use portupgrade -af, or make installworld?
Blackbird
Junior Member
 
Posts: 42
Joined: 25 May 2010, 12:14

Postby graudeejs » 05 Jul 2010, 12:41

install [port]ports-mgmt/portmaster[/port]
read about --force-config option

I haven't tested, but I think something like [cmd=#]portmaster --foce-config -r -a[/cmd] would work

an alternative is:
[cmd=#]rm -f /var/db/ports/*[/cmd]
This will delete all stored configurations of all ports

if you want to configure just one port cd to it and run [cmd=#]make config[/cmd]
User avatar
graudeejs
Style(9) Addict
 
Posts: 4591
Joined: 16 Nov 2008, 23:23
Location: Riga, Latvia

Postby wblock@ » 05 Jul 2010, 16:09

Blackbird wrote:Hi,

I'm coming from Gentoo and are totally new to FreeBSD ports system...

What I want is, to reconfigure all installed ports and rebuild/reinstall them afterwards.
...
So, how to do that? Can I use portupgrade -af, or make installworld?


(installworld is for the operating system, nothing to do with ports.)

See the portupgrade man page for the -C option. It will do the config steps for all ports before rebuilding.
User avatar
wblock@
Old Fart
 
Posts: 10226
Joined: 07 Sep 2009, 23:23
Location: Milky Way galaxy


Return to Installation and Maintenance of FreeBSD Ports or Packages

Who is online

Users browsing this forum: No registered users and 1 guest