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 19th September 2008
wubrgamer's Avatar
wubrgamer wubrgamer is offline
Port Guard
 
Join Date: May 2008
Posts: 34
Default One small question about portupgrade (and yes I HAVE read the man-pages!)

So I've read manpages on portupgrade and portinstall (same program i know)

and I've been doing plenty of installs with "portinstall -P" to install packages, because I have a plenty slow machine, and I have yet to have been told any real advantages to compiling over installing packages, so I install packages

anywho!

upgrading

can I just run "portupgrade -aP" to install all upgrades and install them from packages when found?

How often will fresh updates be rolled into packages for my convenience? How often are things made into packages in general?

also, is running "portupgrade -aP" safe? does it run the pkgdb commands necessary to keep my system well-maintained?

is this the optimal method for updating a machine?
Reply With Quote
  #2   (View Single Post)  
Old 19th September 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Default

I have a fairly slow laptop (Sempron Mobile 3300+, 512DDR), so I do likewise.


Code:
# script /root/portupgrade_script.tonight
# portupgrade -arRbP --batch -l ~/portupgrade_log.tonight

 ... coffee break

I do not personally *recommend* doing it that way, but it works for me and has been quite reliable; with less trouble then making packages on a faster PC to transfer over.


if a problem needing suitable user intervention occurs, you'll have to fix the pkgdb, either semi-automatically or manually. Most issues I've had with pkgdb, come from managing changed dependencies.
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
  #3   (View Single Post)  
Old 19th September 2008
wubrgamer's Avatar
wubrgamer wubrgamer is offline
Port Guard
 
Join Date: May 2008
Posts: 34
Cool more confused

so what SHOULD I do?

What command should i punch in?

what's the freebsd equivalent for "apt-get update" and "apt-get upgrade"?
Reply With Quote
  #4   (View Single Post)  
Old 19th September 2008
anomie's Avatar
anomie anomie is offline
Local
 
Join Date: Apr 2008
Location: Texas
Posts: 445
Default

I don't think there is an exact equivalent to the apt-get commands you mentioned. Keep in mind the distinction between the base system and third-party software (ports) in FreeBSD land.

There are source (rebuilding world) and binary (freebsd-update) options for upgrading the base system. There are numerous ways to upgrade your ports.

Can you explain what you're aiming to accomplish here apart from upgrading for the sake of upgrading? (Is there a certain port you need a security fix for, or the latest version of? etc.)
__________________
Kill your t.v.
Reply With Quote
  #5   (View Single Post)  
Old 19th September 2008
wubrgamer's Avatar
wubrgamer wubrgamer is offline
Port Guard
 
Join Date: May 2008
Posts: 34
Default

I'd just like to know how, in case a (well, I really don't care about security on my desktops) but certainly FEATURES come out, and I'd like to upgrade those

and I'd like to know now, and this is mostly tinkering for the sake of tinkering, I'm trying to learn about the freebsd underpinnings of the pc-bsd installation, once i'm comfortable enough, i'm going to venture off into pure-freebsd land for my daily desktop usage

ALSO, I'm using it daily as a desktop to help me understand how to use it as a server, (package management and maintanence etc. etc.)

but yeah, how do I upgrade "for the sake of upgrading" as the freebsd community seems to frown upon?

I like being able to say my system is "fully up to date"
Reply With Quote
  #6   (View Single Post)  
Old 19th September 2008
DrJ DrJ is offline
ISO Quartermaster
 
Join Date: Apr 2008
Location: Gold Country, CA
Posts: 507
Default

Quote:
Originally Posted by wubrgamer View Post
I like being able to say my system is "fully up to date"
I'd caution you that this is not really a good idea. One example is the large meta-packages like Gnome or KDE, and I'll use the former as an example.

You install and upgrade it from the gnome2 metaport, which has all the various bits and pieces. When a new release, major or minor, comes out, you can update the metaport, and UPDATING has the details on how to do that. The minor updates are (usually ) no big deal, but the updating between major versions is. You have to do it right, or you break things.

Once that release is out, the component pieces continue to be updated. So if your computer is "fully up-to-date" you have some of these pieces that are not intended to be used unless you know what you are doing. Between minor releases this usually is not a big deal. But if you hit the boundary between the last minor release and a major upgrade, you can cause all sorts of mischief.

So it depends on what you mean by having your computer be fully up-to-date. Gnome2 can be current, but the libraries and some of the pieces may not be.

I would never, ever, recommend that someone upgrade all the ports at once. Unless you run a simple system this method is guaranteed to result in breakage that will take a long time to fix.

Instead, upgrade it in pieces. I break it roughly as X11 and video drivers, gnome2 and its pieces, and "other" including math packages, things like gimp and ImageMagick and Acroread -- in general, ports that do not really depend on a lot of other stuff. That's not clean either, but that has worked pretty well for me over the years. But keep your eye out for upgrade to things like gettext, which require every port to be upgraded.

I also think that having something that works is much better than getting the latest and greatest new features. Usually there are new bugs that are introduced too. For example, I would never recommend that a new major update of Gnome be installed unless you like hunting bugs or you REALLY need something new. Usually by .1 it has settled down enough to be pretty useful, and by the .3 (namely, just before the new version) it works really well.

YMMV
Reply With Quote
  #7   (View Single Post)  
Old 20th September 2008
jb_daefo jb_daefo is offline
Spam Deminer
 
Join Date: May 2008
Posts: 303
Default

2004 - 2008 ... How I upgrade ports has changed probably
!!_ weekly_ !! ''by bits and pieces". What is a suitable way here,
probably not a suitable way for 40 percent of others who use
FreeBSD...
__________________
FreeBSD 13-STABLE
Reply With Quote
  #8   (View Single Post)  
Old 20th September 2008
DrJ DrJ is offline
ISO Quartermaster
 
Join Date: Apr 2008
Location: Gold Country, CA
Posts: 507
Default

I don't understand your question entirely, but I keep an eye on the major metaports I use: X11, Gnome and "the rest". When X11 has a major upgrade, I let it pass for a while until it settles down. You can keep an eye on the lists for the issues.

I have hunted down a lot of bugs in Gnome, so I often upgrade at the beta stage, and contribute bug reports. Usually I find a dozen or so. There are more early on, and by .1 the port is in decent shape.

The others are less important to me, and don't change as much.

The bottom line is that you can keep an eye on what is happening from the lists, and somewhat from what ports are not up-to-date. For gnome, there are all sorts of ports that upgrade along the way; until there is an upgrade to gnome2, well, don't upgrade any of those (unless there is a bug that bites you) until the metaport upgrade. Then decide if you want it.

Sadly, you have to know what you have installed, how those ports relate to other things you have installed, and keep an eye on what is upgraded and when. It does take some work.

You can get the hang of it after a while. But simply doing an upgrade of all ports whenever you decide to do it is just not wise. FWIW, I keep an eye on things and spend a day or two upgrading every three months or so. I go from source, but using packages is not really that different if you know that the packages have some delay in being built.
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
Why does BSD loads web pages slow? bigb89 General software and network 10 27th October 2008 06:38 AM
mod_gzip2 not compressing pages Weaseal FreeBSD Ports and Packages 0 23rd September 2008 11:56 PM
Portupgrade problem hitete FreeBSD Ports and Packages 1 28th August 2008 03:53 PM
Man pages obsolete? corey_james Other BSD and UNIX/UNIX-like 13 14th July 2008 07:59 PM
Man pages for X robbak Feedback and Suggestions 0 9th May 2008 12:32 AM


All times are GMT. The time now is 09:54 PM.


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