DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 18th July 2014
spermwhale_warrior spermwhale_warrior is offline
Fdisk Soldier
 
Join Date: May 2013
Posts: 59
Default can't setup PKG_PATH after install of 5.5

Hello
I have never used a bsd family system before.
I am to the point of setting PKG_PATH in order to install all the other programs like a decent graphical browser.
Here is my PKG_PATH, feel free to correct qqbecause I could not see the errs myself :
PKG_PATH=ftp://ftp.irisa/fr/pub/OpenBSD/5.5/packages/amd64/;ftp://ftp.arcarcane-networks.fr/pub/...OpenBSD/amd64/
But the console tell me this :
ksh:/root/profile[22]: ftp://ftp/ftp.arcarcane-networks.fr/pub/OpenBSD/amd64/: not found
ksh:/root/profile[22]: ftp://ftp/ftp.fr.openbsd.org/pub/OpenBSD/amd64/ : not found
despite having read the man pages, I can't get ksh redirect the error output and standard output on the same file. otherwise I would I post here the file.
essentialy pkg_add tell me that it can't found the first two adresses, but ignore the third. I'll post the file if you can give a command to past directly

Thanks
Reply With Quote
  #2   (View Single Post)  
Old 18th July 2014
blackhole's Avatar
blackhole blackhole is offline
Spam Deminer
 
Join Date: Mar 2014
Posts: 316
Default

A lot of syntax errors and misspelt URLs there.

Choose a mirror: http://www.openbsd.org/ftp.html#ftp

Read FAQ 15: http://www.openbsd.org/faq/faq15.html#PkgMgmt
Reply With Quote
  #3   (View Single Post)  
Old 18th July 2014
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

Yes, your syntax is incorrect. The OpenBSD project has all mirrors use the same folder structure.
One way to verify your mirror and pull the path is to use the built-in ftp(1) client in a terminal. Use the cd (change directory command) command to change to the desired package directory. The pwd (present working directory command) will echo the path to the packages working directory. This can be copy'd n pasted into the PKG_PATH declaration in your `/.profile

Also see this example at M:tier.

Last edited by shep; 18th July 2014 at 11:08 PM. Reason: bilut in -> built-in
Reply With Quote
  #4   (View Single Post)  
Old 18th July 2014
ibara ibara is offline
OpenBSD language porter
 
Join Date: Jan 2014
Posts: 783
Default

As a bonus, when you install OpenBSD, if you choose to install sets over http then your system will remember which mirror you used and set PKG_PATH for you so you don't have to do it manually (unless you really want to).
Reply With Quote
  #5   (View Single Post)  
Old 19th July 2014
spermwhale_warrior spermwhale_warrior is offline
Fdisk Soldier
 
Join Date: May 2013
Posts: 59
Default

I observe that for servers such as ftp.irisa.fr whose response is rather slow to make the content of /pub/OpenBSD/5.5/packages/ appear,
is seen as empty by pkg_add, so by the ftp built-in command.
Can I set higher the delay latency ?

Last edited by spermwhale_warrior; 19th July 2014 at 09:23 AM.
Reply With Quote
  #6   (View Single Post)  
Old 19th July 2014
ibara ibara is offline
OpenBSD language porter
 
Join Date: Jan 2014
Posts: 783
Default

If your response time to a particular mirror is that bad, you should choose a different mirror.
Reply With Quote
  #7   (View Single Post)  
Old 19th July 2014
spermwhale_warrior spermwhale_warrior is offline
Fdisk Soldier
 
Join Date: May 2013
Posts: 59
Default

well, it's done. I reinstalled so that all the config be done.
First : whereis is PKG_PATH written when we install the sets through http ? I thought I could modify the default PKG_PATH after the installation, but if there are any I'll keep doing gross syntax errors !
Reply With Quote
  #8   (View Single Post)  
Old 19th July 2014
ibara ibara is offline
OpenBSD language porter
 
Join Date: Jan 2014
Posts: 783
Default

/etc/pkg.conf
Reply With Quote
  #9   (View Single Post)  
Old 26th August 2014
spitfire_ak spitfire_ak is offline
Port Guard
 
Join Date: Aug 2014
Posts: 18
Default

Quote:
Originally Posted by spermwhale_warrior View Post
well, it's done. I reinstalled so that all the config be done.
First : whereis is PKG_PATH written when we install the sets through http ? I thought I could modify the default PKG_PATH after the installation, but if there are any I'll keep doing gross syntax errors !
One of the install routines I found and followed had the information in root's .xinitrc:

Code:
export PKG_PATH="ftp://ftp.openbsd.com/pub/OpenBSD/5.5/packages/${uname -m}"
As I am new to OpenBSD, I'm not sure if that is the koshur way to accomplish this; however, it seems to be working for my install.
Reply With Quote
Old 26th August 2014
blackhole's Avatar
blackhole blackhole is offline
Spam Deminer
 
Join Date: Mar 2014
Posts: 316
Default

Why not read the documentation?

http://www.openbsd.org/faq/faq15.html#Easy
Reply With Quote
Old 26th August 2014
spitfire_ak spitfire_ak is offline
Port Guard
 
Join Date: Aug 2014
Posts: 18
Default

I apologize, not the .xinitrc it was the .profile! Just remembered I put .xinitrc...
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
What is the PKG_PATH for NetBSD 6.0.1 Binary Installs? haziz NetBSD General 9 19th March 2013 01:12 AM
Need help with NAT setup Quaxo OpenBSD Installation and Upgrading 6 27th January 2009 08:03 PM
"No package available in the PKG_PATH" error Nk2Network OpenBSD Packages and Ports 19 12th January 2009 09:22 PM
HOWTO: Install and setup MLDonkey on FreeBSD tangram Guides 0 7th January 2009 05:13 PM
How To Setup WPA? warriors OpenBSD General 8 15th June 2008 04:39 PM


All times are GMT. The time now is 11:43 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