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 30th July 2008
bsdnewbie999 bsdnewbie999 is offline
Package Pilot
 
Join Date: May 2008
Posts: 145
Thanked 0 Times in 0 Posts
Default how to check package dependencies?

I met some problems when i try to install a package, for example eclipse. While eclipse require other packages but how to i know the required packages before i install it?So i can download all the requirements and install it one time.
Reply With Quote
  #2   (View Single Post)  
Old 30th July 2008
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,888
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by bsdnewbie999 View Post
...but how to i know the required packages before i install it?
Before you are finished, you may need both of the following:
  • make print-build-depends
  • make print-run-depends
More useful targets can be found in the ports(7) manpage.

Last edited by ocicat; 30th July 2008 at 03:07 AM.
Reply With Quote
  #3   (View Single Post)  
Old 30th July 2008
bsdnewbie999 bsdnewbie999 is offline
Package Pilot
 
Join Date: May 2008
Posts: 145
Thanked 0 Times in 0 Posts
Default

i see.
Reply With Quote
  #4   (View Single Post)  
Old 30th July 2008
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,710
Thanked 214 Times in 189 Posts
Default

As ocicat mentioned, the ports tree can be helpful for research and planning, if you have the disk space.

If you just want to install a package, and you have an Internet connection, you do not need to know the dependency structure. All you need to do is set the PKG_PATH environment variable and run pkg_add. All dependencies will be automatically installed.
Reply With Quote
  #5   (View Single Post)  
Old 30th July 2008
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,888
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by jggimi View Post
As ocicat mentioned, the ports tree can be helpful for research and planning, if you have the disk space.
Unless it has been deleted, bsdnewbie999 had the ports tree installed given a number of questions he had about building the JDK some number of weeks ago.
Quote:
If you just want to install a package, and you have an Internet connection, you do not need to know the dependency structure. All you need to do is set the PKG_PATH environment variable and run pkg_add. All dependencies will be automatically installed.
jggimi is right. Unless Internet access is not available, there is no reason to manually download all packages before installing. Studying Section 15 of the FAQ will help clarify both the intent & usage of the package system:

http://openbsd.org/faq/faq15.html

Last edited by ocicat; 30th July 2008 at 03:10 PM.
Reply With Quote
  #6   (View Single Post)  
Old 31st July 2008
ai-danno's Avatar
ai-danno ai-danno is offline
Spam Deminer
 
Join Date: May 2008
Location: Boca Raton, Florida
Posts: 284
Thanked 35 Times in 31 Posts
Default

bsdnewbie999, are you concerned about the dependencies for a package (in your case, eclipse) because one of them fails to install correctly? If there is a dependency that fails to install, it should be telling you which one.

Now if you still want to view dependencies for a particular package, and your PKG_PATH is set, use the "-S" option on pkg_info. Here's how:

1) Find the proper name of the package for the application you want to see dependencies for (we'll use snort.)

Code:
# pkg_info -Q snort
p5-Net-Snort-Parser-1.21p0
snort-2.8.0.1
snort-2.8.0.1-mysql
snort-2.8.0.1-postgresql
snort-2.8.0.1-prelude
2) Use the proper package name to check that package's dependencies. Let's choose snort-2.8.0.1-mysql (because regular snort isn't fun enough, we want the version of snort that logs its results to a mysql database.)

Code:
# pkg_info -S snort-2.8.0.1-mysql
Information for ftp://ftp.usa.openbsd.org/pub/OpenBSD/4.3/packages/i386/snort-2.8.0.1-mysql.tgz

Signature: snort-2.8.0.1-mysql,c.43.0,lib/mysql/mysqlclient.18.0,m.2.3,mysql-client-5.0.51a,pcap.5.0,pcre-7.6,pcre.2.1,z.4.1
And voila! Dependencies listed in all their stunning glory.
__________________
Network Firefighter
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
please check my pf.conf gosha OpenBSD Security 10 30th January 2009 12:32 AM
Best way to check and fix corrupt disk? bsdme2 FreeBSD General 5 29th January 2009 06:10 PM
(Net|Open)BSD Make: implicit C header dependencies taylor_venable Programming 3 25th November 2008 10:32 AM
check for badblocks ccc FreeBSD General 5 30th October 2008 07:00 PM
How to handle conflicting port dependencies? Aux FreeBSD Ports and Packages 2 29th September 2008 06:44 AM


All times are GMT. The time now is 05:14 AM.


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