how to rebuild port and all dependencies?

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

how to rebuild port and all dependencies?

Postby graudeejs » 01 Nov 2009, 21:12

How to rebuild port and ALL (even if they are up to date) dependencies?
I've no idea.
Please help.
User avatar
graudeejs
Style(9) Addict
 
Posts: 4591
Joined: 16 Nov 2008, 23:23
Location: Riga, Latvia

Postby gilinko » 01 Nov 2009, 21:16

portmaster -r [name of port]

I'm guessing that the man pages for portupgrade has some more detailed information for it's switches
User avatar
gilinko
Member
 
Posts: 416
Joined: 18 Nov 2008, 06:02
Location: SV_se

Postby DutchDaemon » 01 Nov 2009, 21:19

Ports it depends on, or ports that depend on it?

portmaster and portupgrade both have -f flags, and -r and -R usually define upstream or downstream dependencies to include. Though they're very different between portmaster and portupgrade.

[pman=1]portupgrade[/pman], [pman=8]portmaster[/pman].

IIRC:

rebuild a port and ports it depends on = portupgrade -Rf <portglob> / portmaster -f <portglob>

rebuild a port and ports depending on it: portupgrade -rf <portglob> / portmaster -rf <portglob>
User avatar
DutchDaemon
Old Fart
 
Posts: 10464
Joined: 16 Nov 2008, 20:17
Location: The Netherlands

Postby graudeejs » 01 Nov 2009, 21:35

seams [cmd=$]portmaster -fR multimedia/mplayer[/cmd] did the trick.

Thanks....
I've read throught man page, but somehow didn't understand it clearly until your reply
User avatar
graudeejs
Style(9) Addict
 
Posts: 4591
Joined: 16 Nov 2008, 23:23
Location: Riga, Latvia

Postby Zare » 01 Nov 2009, 21:56

Can portmaster rebuild all ports with their saved configurations? I mean, when i did system-wide upgrade it always popped out blue dialogs for port configuration.
Zare
Member
 
Posts: 385
Joined: 16 Nov 2008, 23:05
Location: Split, Dalmatia

Postby DutchDaemon » 01 Nov 2009, 22:11

As far as I know, a rebuild will only prompt for configuration options when either --force-config is specified or when there are changed options which require a selection to be performed. There's also the -G flag though.
User avatar
DutchDaemon
Old Fart
 
Posts: 10464
Joined: 16 Nov 2008, 20:17
Location: The Netherlands

Postby graudeejs » 01 Nov 2009, 23:22

Zare wrote:Can portmaster rebuild all ports with their saved configurations? I mean, when i did system-wide upgrade it always popped out blue dialogs for port configuration.

I just finished rebuilding mplayer (and all it's dependencies)

portmaster never asked me to configure any of ports (since i've done this earlier)
User avatar
graudeejs
Style(9) Addict
 
Posts: 4591
Joined: 16 Nov 2008, 23:23
Location: Riga, Latvia


Return to Installation and Maintenance of FreeBSD Ports or Packages

Who is online

Users browsing this forum: martino and 3 guests