Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 14658
  • Last Modified:

How to install RPM, YUM, and Java on FreeBSD

Dear Experts,

I am a newbie to this arena.  Any help would be greatly appreciated.

1) I have installed FreeBSD on one of our server with Webmin.  There are software like Wildfire that I need to install on this server.  I would like to download the RPM or BIN version of this package.  However, when I try to run the "rpm" command from root /usr/local/, the message came back as "command not found".

2) I researched on and realized that I will need to install a rpm handling software such as RPM 4.4 or Yum.  I went to download them, but now don't know how to install them.  I searched high and low for installation docs, but most just point to the how-to of installing the rpm packaged software, but not the rpm software itself.

3) I also need to install the Java JRE or JDK 5.0 (according to Wildfire), but for the life of me couldn't figure out how to do that.

4) I toyed around with WebMin's add package, that didn't work.  I also played around with the "pkg_add"  and "make" command, that didn't help either.  I need to know how to handle rpm packages not just for wildfire, but for all future software install.  I mean why can't I just handle the package install from Webmin?  It kept saying the package is not a FreeBSD package.

5) How do I install a .bin version of the software onto FreeBSD?  In brief, how do I handle .bin installations?

Looking forward to your kind help.
0
impire
Asked:
impire
  • 4
  • 3
  • 2
2 Solutions
 
rivusglobalCommented:
With FreeBSD, you use "make install clean" in the /usr/ports/... directory to install ports (rpms). FreeBSD doesn't use RPM.

Java is located in the /usr/ports/lang/.. dir <--- you can find it there. FreeBSD will automatically install dependencies.

As for Wildfire.. I can't help you out there. As far as I am aware, it's not a part of the ports tree, so compatibility may be an issue.

Hope you can get things going.

Cheers!
0
 
impireAuthor Commented:
I think that's where it got me hung up.  I could not locate the "ports" directory under /usr.  I am using the latest FreeBSD version 6.1.  Any help would be greatly appreciated.

Also, how do you install a .bin version of the packaged software.  Thanks in advance.
0
 
impireAuthor Commented:
I wanted to add one more question if I may.  Can I install YUM on FreeBSD?  Do you even recommend that I do that in order to maintain rpm packaged software?  If so, how do I install YUM on FreeBSD?  Thanks again.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
rivusglobalCommented:
YUM is an automatic updater and package installer/remover for rpm systems. To make a long story short, I wouldn't install YUM on the system.

FreeBSD ports tree has it's own package management tool.

use pkg_info command to list your various installed packages.
use pkg_version -v to determine if ports need to be updated.

Install portupgrade from /usr/ports/sysutils/portupgrade

To upgrade your software using the portupgrade system follow the directions at the below included link:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-using.html

Hope this helps.
0
 
gheistCommented:
rpm2cpio wildfire-whatever-rpm | pax -rv
will extract your RPM.
as for every custom linux program you will have to examine www.freebsd.org/handbook on how to enable running Linux binary programs.

Not having /usr/ports is your choice at installation time.
it is good time to run sysinstall -> Comfigur -> Packages and install ports collection;  then sysinstall ->Configure -> Ports and install with rpm and linux compatibility packages.
0
 
gheistCommented:
s/packages/distributions
s/ports/packages
0
 
gheistCommented:
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.
I will leave the following recommendation for this question in the Cleanup topic area:

split between rivusglobal http:#16635955 and gheist http:#16642656

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

gheist
EE Cleanup Volunteer
0
 
impireAuthor Commented:
Thank you very much guys.  Sorry didn't get a chance to update.  We have a newborn in the family.  Once again, thanks for the great help.
0
 
gheistCommented:
Then install Ubuntu or Mandriva - less hassle with package management.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 4
  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now