LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 11-19-2003, 11:43 AM   #1
rafalek
Member
 
Registered: Oct 2003
Posts: 43

Rep: Reputation: 15
updateing ports


How to update ports to have the newests versions
 
Old 11-19-2003, 12:10 PM   #2
DwightDE
LQ Newbie
 
Registered: Oct 2003
Distribution: Debian/Knoppix, FreeBSD
Posts: 20

Rep: Reputation: 0
I assumed you're using OpenBSD. Now that I've written all this, I realize you didn't specify, so you're probably using FreeBSD. If that's the case, ignore the remainder of this message and look up CVSup.

Here's my attempt at writing a procedure for updating ports in OpenBSD:

I'm really new at this, and haven't tried what I'm about to tell you, but I've just found the relevant sections in the manuals, and here's basically what they say:

To use ports (and you DO want to use ports), do this to set up initially:

If the environment variable isn’t set, set it to the usual server. Always use the same server. Use ping to find out which ones are fastest for you. Note that you have to log in as root, or use "su" to become root for this to work.

# setenv CVSROOT anoncvs@[put a fast cvs server URI here, without the square brackets]:/cvs

# cd /usr
# cvs -q get -rOPENBSD_3_4 -P ports

---------------------------------------------------

To update ports, do this:

(This follows the patch branch, not current.)
# cd /usr
# cvs -q up -rOPENBSD_3_4 ports

Now, here's the part I'm not sure about. I think this may rebuild all the binaries of all the programs installed from ports on your system. (Hopefully, someone will correct me if I'm wrong, and we'll both learn something.)

Rebuilding the binaries:
# cd /usr/src
# rm –r /usr/obj/*
# make obj && make build
(This will take a while.)
 
Old 12-02-2003, 07:32 PM   #3
nullpt
Member
 
Registered: Jul 2003
Distribution: Red Hat
Posts: 94

Rep: Reputation: 15
If you have FreeBSD you can either edit /usr/share/examples/cvsup/ports-supfile (or his copy, so you don't screw the default file) and place your cvsup server, and then just:
$ cvsup -g -L 2 /usr/share/examples/cvsup/ports-supfile
or you can simply edit /etc/make.conf (if you don't have one copy the /etc/defaults/make.conf and use it at /etc/) and change the cvsup info in the final of the file, and any other update info related to it. Then you can use it like this:
$ cd /usr/ports && make update
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Updateing Slackware 10.2 RIB-EYE Slackware 4 10-25-2005 07:35 PM
updateing Kernal LoGic82 Fedora 1 05-27-2005 02:56 PM
updateing AGilley007 Slackware 7 07-09-2004 04:55 AM
updateing the kernel im1crazyassmofo Linux - General 6 03-04-2003 10:45 PM
updateing to 8.1 kylo8787 Slackware 1 04-16-2002 03:04 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 09:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration