LinuxQuestions.org
Register a domain and help support LQ
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 09-02-2004, 11:56 AM   #1
noir911
Member
 
Registered: Apr 2004
Location: Baltimore, MD
Posts: 681

Rep: Reputation: Disabled
[OpenBSD] ports tree newbie question


I got the ports tree in the CD and I also know how to install program using ports tree (cd /usr/ports/path/to/file && make clean install).

I am kind of clueless as to where I should unzip my ports tree tarball. I looked at the FAQ and man cvs doesn't say anything about it. Also while unzipping the tarball, should I use the -p switch?

TIA.
 
Old 09-02-2004, 03:17 PM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
I can't remember which directory you should unzip it in, either /usr or /usr/ports. You can use tar -t to list the contents of a file, so you could do something like tar -tf ports.tgz |head. That will show you what directories it wil create on it's own. It should go in /usr/ports, so if the tarball looks something like
ports/net/stuff
ports/security/stuff
...

Then you want to untar it in /usr

If it has
net/stuff
security/stuff

Then it should go in /usr/ports

...

You get the idea.
 
Old 09-04-2004, 10:45 PM   #3
noir911
Member
 
Registered: Apr 2004
Location: Baltimore, MD
Posts: 681

Original Poster
Rep: Reputation: Disabled
Ok. Here it is:

First you have to d.load the ports*.gz and copy it to /usr directory. Then unzip the tarball (tar -zvf port*.gz) and then you will get the /usr/ports/* directory. That's all. Now, go to the respective directory of the thing you want to install. And "make install".

Now, another question:

I tried to get the latest port for nmap so I went to /usr/ports/security/nmap && make install. But it's still nmap 3.50 and NOT 3.70 - the latest one. Is it likely the I am stuck with an older version of nmap till I go for OpenBSD-CURRENT or OpenBSD 3.6? Or it's just that the ports tree has not been upgraded yet?

TIA.
 
Old 09-04-2004, 10:55 PM   #4
Lurker01
Member
 
Registered: Aug 2004
Location: Brooklyn, NY
Posts: 133

Rep: Reputation: 15
Did you run CVsup to update your ports tree after extracting the tarball?

it could be an outdated one.
 
Old 09-05-2004, 03:09 AM   #5
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
When you install the ports tree from the tarball, it will be whatever came with the -release. You need to cvs up your ports tree (follow the instructions on www.OpenBSD.org/ports.html) to get the latest version of OpenBSD ports. Note that this still might not be up to whatever is available at www.insecure.org, because ports are only updated when the maintainer has time to verify that they work correctly on OpenBSD.
 
Old 09-05-2004, 03:50 AM   #6
noir911
Member
 
Registered: Apr 2004
Location: Baltimore, MD
Posts: 681

Original Poster
Rep: Reputation: Disabled
you are right. Didn't help. I downloaded the latest ports tree from ftp://ftp.openbsd.org/pub/OpenBSD/snapshots/. Nmap is still 3.5 altho some other stuffs have changed; like, firefox 0.8 to 0.8p etc. etc.
 
Old 09-05-2004, 03:01 PM   #7
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
Yep, it's still at 3.50. Don't worry, it'll be updated soon. Dan usually gets new versions integrated very quickly.
 
  


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
OpenBSD: Newbie questions anticuchos *BSD 2 10-18-2005 10:00 AM
Can't update FreeBSD Ports Tree Temujin_12 *BSD 12 06-11-2005 10:04 PM
Configuring the Ports tree in OpenBSD blood_omen *BSD 2 10-19-2004 01:06 AM
ports tree frozen? Bd22 *BSD 4 09-24-2004 07:11 PM
Anyone Know of a OpenBSD newbie forum? vofkid Linux - Newbie 1 03-14-2002 04:11 PM


All times are GMT -5. The time now is 06:00 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration