DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 4th August 2009
pbd pbd is offline
New User
 
Join Date: Aug 2009
Posts: 3
Default equivalent to freebsd fetch

Hi,

is there any program with similar functionality as FreeBSD /usr/bin/fetch in OpenBSD installation (not ports)?

Thanks.
Reply With Quote
  #2   (View Single Post)  
Old 4th August 2009
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by pbd View Post
is there any program with similar functionality as FreeBSD /usr/bin/fetch in OpenBSD installation (not ports)?
Assuming you are referring to fetch(3), OpenBSD's pkg_add(1) can be used to install packages at installation manually, or scripted via siteXX.tgz scripts. For more information, see Section 4.13 of the FAQ:

http://openbsd.org/faq/faq4.html#site
Reply With Quote
  #3   (View Single Post)  
Old 4th August 2009
pbd pbd is offline
New User
 
Join Date: Aug 2009
Posts: 3
Default

Thanks, yes, I referred to fetch(3), but I was thinking about some general download utility, not about installing packages. But I think I will get along with nc(1).
Reply With Quote
  #4   (View Single Post)  
Old 4th August 2009
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

For general downloading, ftp(1) can be used in "auto-fetch" format with ftp, http, or https protocols, and with ftp and http proxies. And, if necessary, net/wget is also available.
Reply With Quote
  #5   (View Single Post)  
Old 4th August 2009
pbd pbd is offline
New User
 
Join Date: Aug 2009
Posts: 3
Default

Quote:
Originally Posted by jggimi View Post
For general downloading, ftp(1) can be used in "auto-fetch" format with ftp, http, or https protocols, and with ftp and http proxies. And, if necessary, net/wget is also available.
Thanks! That's what I was looking for.
Reply With Quote
  #6   (View Single Post)  
Old 4th August 2009
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Default

the ftp command is usually the most convenient thing, short of installing wget everywhere. Since a base level of 'ftp' client is essentially included on all BSD systems, Microsoft Windows NT, and probably a lot of Linux distros.
__________________
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
  #7   (View Single Post)  
Old 7th August 2009
indienick indienick is offline
Lisp Junkie
 
Join Date: Apr 2009
Location: London, ON, Canada
Posts: 27
Default

OpenBSD's ftp(1) utility is wonderful; I am especially digging that I do not need to install anything extra (like wget, or curl) just to download the target URL.

Sadly, the as-per-usual FTP client on Linux is not as useful (IMO) as the OpenBSD client.
Reply With Quote
  #8   (View Single Post)  
Old 7th August 2009
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
 
Join Date: Apr 2008
Location: Netherlands
Posts: 2,243
Default

Quote:
Sadly, the as-per-usual FTP client on Linux is not as useful (IMO) as the OpenBSD client.
On Linux and FreeBSD ftp(1) is meant as just a ftp client, nothing more or less. For more advanced features and protocol support wget and fetch are used respectively.

OpenBSD's ftp(1) is somewhat misnamed, and should be compared to wget or fetch in Linux and FreeBSD. Not to their ftp(1).
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #9   (View Single Post)  
Old 7th August 2009
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

It made sense for them to turn ftp(1) into a general purpose "fetcher" for the install media and for the package/port system.

If you look in the OpenBSD -CURRENT source for ftp, you'll notice that if it's compiled for SMALL.. it is only a fetcher, and cannot be used to upload files to an FTP server.

You'll also notice that NetBSD and FreeBSD support HTTP in ftp, it's not only an OpenBSD thing.
Reply With Quote
Old 7th August 2009
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

To clarify, BSDfan, -DSMALL is used only when compiling the version used in the ramdisk kernel. The ftp(1) client in the OS is a fully functional program.
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
OpenSolaris equivalent of systrace? DraconianTimes Solaris 9 31st January 2009 05:36 AM
portupgrade -af, how to submit fetch options? bsdfan FreeBSD Ports and Packages 4 28th December 2008 09:05 PM
Remastersys FreeBSD equivalent? businessgeeks FreeBSD General 2 4th August 2008 01:44 PM
FreeBSD equivalent of DOS's fdisk /mbr Nobber FreeBSD General 5 3rd June 2008 07:19 AM
linux-flashplugin fetch error. bsdnewbie999 FreeBSD General 5 16th May 2008 05:40 AM


All times are GMT. The time now is 02:51 AM.


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