Portupgrade on FreeBSD 119
BSD Forums writes "In her previous article, OnLamp's Dru Lavigne took a look at the built-in utilities that can be used to manage the FreeBSD ports collection. In this article, she'd like to continue in that vein. She takes a look at portupgrade, a feature-rich port designed to help you get the most out of the ports collection."
I don't mean to be a jerk, (Score:2, Interesting)
Re:I don't mean to be a jerk, (Score:3, Insightful)
Re:I don't mean to be a jerk, (Score:5, Interesting)
portupgrade is not news, but new user documentation is news. Well, if it's good documentation, then it's news. I read a few sections of it just now, and I think it's pretty good. It's written in a direct, readable style and has lots of examples. Since it answered some questions I had about portupgrade, it seems to me to be comprehensive. So, this is pretty cool. One of the best things about BSD is the quality of the documentation.
portupgrade is a port (Score:5, Insightful)
Re:portupgrade is a port (Score:1, Interesting)
I'd rather have Ruby in the base than Perl, it's a pain to build. Ruby is (currently) much more lightweight, I even have it installed on my Zaurus handheld as a single executable (miniruby).
Re:portupgrade is a port (Score:2, Informative)
No (Score:5, Insightful)
We need to hack parts of the base system off and put them into ports (like kerberos), not add more stuff into the base system.
Re:No (Score:5, Informative)
Re:No (Score:3, Informative)
Re:No (Score:2)
Re:portupgrade is a port (Score:5, Insightful)
Re:portupgrade is a port (Score:2)
I have thought off and on about rewriting portupgrade in C++. The only benefit of this would be to get it into the base system, since I don't think with all the disk i/o going on, that C/C++ will be any faster than Ruby in this context. Bu
Re:portupgrade is a port (Score:2)
Re:portupgrade is a port (Score:1)
Re:portupgrade is a port (Score:2)
Re:portupgrade is a port (Score:3, Funny)
Re:portupgrade is a port (Score:3, Insightful)
BSD is dead, I forgot about that when I installed it on my 5 local machines years ago. Silly me, how could I miss something like that? I guess I forgot that Finux is so l33t (like you) because it has less user than Windows. Then the Finux user discovers something with less users than even Finiux, and it has a license that is non-virus like. Oh no.... not something more free and stable than Finux, it couldn't be, it just can't exist... the World is in collision, you had better sink into denial an
Re:portupgrade is a port (Score:2)
cd
make upgrade or make update should do the right thing.
I filed that bug and it got pissed on. More and more I'm thinking OSX will be my next server OS.
Wow (Score:5, Interesting)
cd
make update
To translate for Gentoo users:
emerge -upD world becomes:
portversion -L "="
and emerge -uD world becomes:
portupgrade -arR
Oh, and etc-update has always been:
mergemaster
Though mergemaster does kinda suck until you get used to it. Not that etc-update is an e-ticket ride either.
Re:Wow (Score:5, Insightful)
Are you a developer? I can't think of a reason why you need to cvsup nightly. Also you can have one machine do the cvsup then export /usr/ports via nfs to the other machines.
I wouldn't edit the /etc/defaults/make.conf, in fact I wouldn't edit anything in the /etc/defaults folder. Copy that file to /etc/make.conf it will override the default without altering it.
Re:Wow (Score:5, Interesting)
Re:Wow (Score:4, Insightful)
Granted Linux has got a whole lot of these pissing contests going on all the time... we don't need them in BSD.
Re:Wow (Score:1, Troll)
Re:Wow (Score:2)
I don't think that anybody should just "fuck off". FreeBSD has a lot to offer (for a secure, stable networked future) and if people aren't willing to spread the knowledge, I don't see things coming very far. I'm sure the BOFH mentality gets you far in life and
Re:Wow (Score:2)
Re:Wow (Score:1)
Re:BSD Problems (Score:2)
As for reasons to use *BSD above other operating systems? I use it because of the flexible software support and vigilant security team.
To each his own.
Re:YHBT. YHL. HAND. (Score:1, Troll)
Dude. Get help.
Nice.... (Score:1)
Excellent (Score:4, Interesting)
sense of humor (Score:5, Funny)
But.... (Score:5, Informative)
Reasonable article.... But running an automatic portupgrage without paying attention to what's actually being upgraded is a really bad move.
Upgrading Apache for instance will trash your running config. Whereas MySQL is a bitch to upgrade as by default it will fail if there is an existing DB.
I find portupgrade -ai is a much better option.
And a backup of /etc/ and /usr/local/etc would be a good idea first....
Re:But.... (Score:5, Informative)
portupgrade -aRrPv
this does check if there's a package available. Saves a lot of time.
Re:But.... (Score:1, Funny)
portupgrade -aRrPv
I just click Windows Update, and click OK whenever prompted.
Re:But.... (Score:2, Informative)
Upgrading Apache will not trash your running config as long as you remove the symlinks to the *-dist directories and make your own dirs. Which is the whole point of having the ports install *-dist files/dirs.
MySQL upgrades just fine, as there is a flag called SKIP_INSTALL_DB=yes for mysql323-server. Set this in your pkgtools.conf and upgrade all you want.
mysql40-server and mysql41-server don't require this, as they use a flag to install the db instead.
Re:But.... (Score:2)
Re:But.... (Score:1)
None of the Apache ports touch your config files if they differ from the -dist installed files.
Most FreeBSD ports install config files with a -dist extension so they don't trash your config.
Re:But.... (Score:2)
Before a port is installed by portupgrade THE OLD PORT IS DELETED. Which I've discovered - twice - trashes the current config directory. Hence the "run interactive & make a backup" caveat.
Re:But.... (Score:2, Informative)
.. and how does portupgrade delete a port? By using the ports own 'make deinstall', which leaves your config files in place.
I just did a portupgrade -f apache, and lookie here: My config wasn't touched. Maybe it happened earlier, but I've never had a problem the last year or so.Re:But.... (Score:2)
-rw-r--r-- 1 root wheel - 20859 Aug 22 12:46
And this after.
-rw-r--r-- 1 root wheel - 47887 Sep 1 19:44
So it also looks like I'm right. Sure glad I've got a backup.....
Is it just me, (Score:1)
I mean, seriosuly. Keep that in teh coffe room with all the 'I just totally recompiled the kernel on my 76 Kaufna Commodore Toaster!
Oh, and don't forget the classic "don't worry, I can just tty in later. Hahah! Get it? TTY, Later?"
Okay, so I'm just trying to see how easy it is to rile these bsd folks....