Slashdot Mirror


FreeBSD Ports Tricks

BSD Forums writes "One of FreeBSD's biggest benefits is its ports collection. You can go years without learning more than just make install clean, but there are dozens of features built into the ports tools. OnLamp's Dru Lavigne demonstrates several of these tricks to simplify your life."

201 comments

  1. Gee golly! by cliffy2000 · · Score: 2, Funny

    It's a good thing that SCO isn't claiming ownership to ALL Unix variants... otherwise they'd have to call it 699DollarsBSD!

    1. Re:Gee golly! by hackrobat · · Score: 5, Funny
      Ha ha! Reminds me of Linus' post in 1993, asked why Linux should be chosen over BSD:
      > Other than the fact Linux has a cool name, could someone explain why I
      > should use Linux over BSD?

      No. That's it. The cool name, that is. We worked very hard on
      creating a name that would appeal to the majority of people, and it
      certainly paid off: thousands of people are using linux just to be able
      to say "OS/2? Hah. I've got Linux. What a cool name". 386BSD made the
      mistake of putting a lot of numbers and weird abbreviations into the
      name, and is scaring away a lot of people just because it sounds too
      technical.
  2. yes by Openadvocate · · Score: 4, Informative

    And you can even find the Bittorrent client.

    --
    my sig
    1. Re:yes by __aavhli5779 · · Score: 1

      If you mean to say 'FreeBSD's ports tree has BitTorrent', I thought you should know that Debian and Fink both provide it as well. I've never used portage, but I wouldn't be surprised if it was available there as well.

    2. Re:yes by Openadvocate · · Score: 1

      Yes, well it early in the morning for me. :)

      --
      my sig
    3. Re:yes by Anonymous Coward · · Score: 1, Interesting

      Guys, what happens if I remove a piece of software after it's been installed and lots of other software depends on it. Will "Ports" warn me about what will break, or will it just go ahead and do it, and leave me scratching my head trying to figure out what happened?

      Seems to cut to the heart of a real package system, IMO.

    4. Re:yes by m0rten · · Score: 5, Informative
      Guys, what happens if I remove a piece of software after it's been installed and lots of other software depends on it. Will "Ports" warn me about what will break, or will it just go ahead and do it, and leave me scratching my head trying to figure out what happened?
      It will warn you that there are other ports depending on this port. However you can forcefully remove it if you wish (and then you're on your own..)
    5. Re:yes by Anonymous Coward · · Score: 0

      When you say "other ports"... does it say which ports, or just "something else depends on this". If it's the first, fine. If it's the second then it's next to useless.

    6. Re:yes by GodOfNothing · · Score: 2, Informative

      Yes, the dependencies are fully listed in both directions (requires and required by)

  3. Useful by billatq · · Score: 4, Informative

    These are pretty useful little tips, thought it looks like almost all of them are in the FreeBSD handbook already.

    1. Re:Useful by vrt3 · · Score: 1, Funny

      I would hope they are in the handbook, because without these 'tricks' I think the ports system would be a pretty dumb package management system.

      --
      This sig under construction. Please check back later.
    2. Re:Useful by Anonymous Coward · · Score: 0

      Does anyone have any links to recent performance comparisons between Linux and FreeBSD, say a new FreeBSD 4 vs a new Linux 2.4, or FreeBSD 5 vs Linux 2.5?

    3. Re:Useful by Anonymous Coward · · Score: 1, Informative

      Unfortunately FreeBSD doesn't do very well in comparison to the performance achieved by other systems such as Windows or Linux. Sys Admin magazine wrote this story on the very topic. It's a good read.

    4. Re:Useful by Anonymous Coward · · Score: 1, Interesting

      It is a good article. It is quite dated though. They're using FreeBSD 4.2 and Linux 2.2.16! I wouldn't be surprised to see FreeBSD still doing worse than Linux, but not that much worse on such low end configuration.

    5. Re:Useful by Anonymous Coward · · Score: 1, Informative

      Ah hah! The followup is a bit better. The main difference by the looks are using similar sort of filesystem modes as the other OSs. FreeBSD catches up quite a bit which is more like I would have expected.

      Still a dated comparison though.

    6. Re:Useful by Anonymous Coward · · Score: 0

      FreeBSD _catching up_ with Linux?

      MUHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHA

      Thanks for the laugh.

    7. Re:Useful by Anonymous Coward · · Score: 0

      FreeBSD doing worse than Linux? From under which stone did you crawl from, son? FreeBSD 0wns Linux.

    8. Re:Useful by Anonymous Coward · · Score: 0

      OK, its not even catching up I just didn't want to make the BSD crowd too angry.

      Lets see... Linux _2.4_ is sold on a 64 processor single system image multiprocessor computer. I doubt the newest freebsd 5 would scale well on a 4 way if you could get it to stop crashing.

    9. Re:Useful by Anonymous Coward · · Score: 0

      Just dream on, clown.

    10. Re:Useful by Anonymous Coward · · Score: 0

      It indeed wouldn't do much good. For linux.

    11. Re:Useful by Anonymous Coward · · Score: 0

      Really? Why do you think all the FreeBSD lists are now devoid of snide remarks about Linux's performance?

    12. Re:Useful by tigga · · Score: 1
      Another problem with that article it shows perfomance of one particular program - Mailengine on different OSes. Perhaps different programs could show different performance patterns.


      Another thing - everybody interested in performance and nobody in reliability. Try yank powercord from computer and look how different OSes behave after boot. Ext2 I believe would be loser. Journalled FS could do better but then there is a performance impact...

    13. Re:Useful by Anonymous Coward · · Score: 0

      Oh yeah? Most people@freebsd.org will tell you that 5 is (currently) slower than 4 you imbicile.

    14. Re:Useful by Anonymous Coward · · Score: 0

      FreeBSD 0wns Linux.

      Period.

    15. Re:Useful by Anonymous Coward · · Score: 0

      Nope. Look up IBM's 32 way POWER4s with 256GB RAM, SGI's SSI 64 way IA64s, 32-way IA32, IA32 with 16GB (and with 2.6 64GB) ram. I suppose they'll all move over to FreeBSD "when we get rid of Giant from 5.x". Ha!

    16. Re:Useful by Anonymous Coward · · Score: 0

      One more time.

      FreeBSD 0wns Linux.

      Period.

      How hard is that?

    17. Re:Useful by Anonymous Coward · · Score: 0

      FreeBSD is alright. Not as fast as Linux.

    18. Re:Useful by Anonymous Coward · · Score: 0

      FreeBSD 0wns Linux....

    19. Re:Useful by Anonymous Coward · · Score: 0

      Freebsd is crap my good man.

    20. Re:Useful by Anonymous Coward · · Score: 0

      FreeBSD 0 w n s Linux.

    21. Re:Useful by Anonymous Coward · · Score: 0

      Nah, its doing funny things with your keyboard though.

    22. Re:Useful by Anonymous Coward · · Score: 0

      Always want to have the last word huh? LOL
      FreeBSD owns linux and your ass..

    23. Re:Useful by Anonymous Coward · · Score: 0

      That isn't what your skanky mom thought.

    24. Re:Useful by Anonymous Coward · · Score: 0

      LOL

      She's not as bad as your mom though. Your mammy does suck cock pretty well, as she did with mine yesterday.

    25. Re:Useful by Anonymous Coward · · Score: 0

      What an original retort. Anyway FreeBSD is crap. Tell me why on earth they are using process context interrupts? Or trying to use fine grained semaphores?

      Hmm... maybe its to make FreeBSD much better than this and this.

      After all, those tests were done with an almost obsolete 2.4 based kernel. FreeBSD 5 must be up somewhere above the 2.6 kernel. Hah hah, Linux 2.4 is so crap and FreeBSD's SMP performance is much better than Linux 2.4. Linux 2.6 isn't much better than 2.4, so FreeBSD 5 will surely beat it.

    26. Re:Useful by Anonymous Coward · · Score: 0

      So you finally see the truth, huh? Well, better late than never..

    27. Re:Useful by Anonymous Coward · · Score: 0

      Yep. You've got nothing.

    28. Re:Useful by Anonymous Coward · · Score: 0

      Thanks for proving my point.

    29. Re:Useful by Anonymous Coward · · Score: 0

      Just as I thought. Nothing.

    30. Re:Useful by Anonymous Coward · · Score: 0

      Thanks again.

    31. Re:Useful by Anonymous Coward · · Score: 0

      Nothing.

    32. Re:Useful by Anonymous Coward · · Score: 0

      And again.

    33. Re:Useful by Anonymous Coward · · Score: 0

      Nothing

    34. Re:Useful by Anonymous Coward · · Score: 0

      Again.

    35. Re:Useful by Anonymous Coward · · Score: 0

      Yep.

    36. Re:Useful by Anonymous Coward · · Score: 0

      Thanks.

    37. Re:Useful by Anonymous Coward · · Score: 0

      And again

  4. The feature I like most: by Krapangor · · Score: 5, Funny
    Zombiefication

    You just type e.g.:
    goat@blindeyes> make emacs --D UNDEAD=1
    And your installation of emacs is zombiefied. That means that an emacs process can never crash, is much stronger albeit slower and can only be killed by kill PID -SIGCUTINTOHALFWITHCHAINSAW.
    In fact I have a zombiefied apache running here for 742 days without any trouble. Although it eats sometimes other processes.

    So all you "*BSD is dead whiners": In fact the death of *BSD is a good thing. It has given the system many new occult powers of which a living system like Linux/MacOS X can only dream. With all these undead processes, vampiric servers and banshee IDS your system is much better than the boring old standard rubbish.
    I even heard some rumors from Redmond that MS is working on killing Windows, too. Just for gaining the great powers of an undead system.

    --
    Owner of a Mensa membership card.
    1. Re:The feature I like most: by andrewski · · Score: 1

      I'm sorry, but a zombie process never runs, and thus can't 'eat other processes' like you claim.

    2. Re:The feature I like most: by Metrol · · Score: 1

      a zombie process never runs, and thus can't 'eat other processes' like you claim

      Obviously you've never configured this for running within a jailed environment. Only so many places to run in that tiny cyber-cell.

      --
      The line must be drawn here. This far. No further.
    3. Re:The feature I like most: by FrostedWheat · · Score: 1

      In fact the death of *BSD is a good thing. It has given the system many new occult powers of which a living system like Linux/MacOS X can only dream.

      Does it have a core system called the Red Queen? And cool lazer things (and no frickin' sharks either) protecting it?

      ResidentBSD: No-one is immune.

    4. Re:The feature I like most: by Anonymous Coward · · Score: 0

      You know what, FrostedWheat? *BSD is dying.

    5. Re:The feature I like most: by FrostedWheat · · Score: 2, Funny

      You know what, FrostedWheat? *BSD is dying.

      I use dead OS's. All the time. They don't know there dead.

    6. Re:The feature I like most: by Jellybob · · Score: 1
      You know what, FrostedWheat? *BSD is dying.

      I use dead OS's. All the time. They don't know there dead.

      [Prepares to slapped down -1: Flamebait]
      Yeah, well, with *BSD, it's kinda like large animal... it takes a while for the message that it's dead to travel through the nervous system and the brain to take notice of it.
    7. Re:The feature I like most: by Anonymous Coward · · Score: 0

      from CyberdogX:

      http://undeadlinux.com/

      too late! muwahahahaha! Linux is now undead too!

    8. Re:The feature I like most: by andrewski · · Score: 1

      Yes, I have run processes in jail. This has nothing whatsoever to do with a process competing for processor time. Zombies never do, nor do they hold any resources whatsoever, thus they CANNOT run.

      Look elsewhere for your process-eater.

  5. Re:BSD is Dying by usotsuki · · Score: 4, Informative

    Maybe not but it sure as hell runs Debian!

    -uso.

    --
    Dreams, dreams, don't doubt dreams, dreaming children's dreaming dreams. Sailor Moon SS
  6. Zealotry by Ari+Rahikkala · · Score: 5, Funny

    [to save Slashdot users' bandwidth, a reply about how Gentoo GNU/Linux does most of this stuff, too, and some of it (like making package repositories) in an easier way has been deleted from this space]

    1. Re:Zealotry by Anonymous Coward · · Score: 0

      The Gentoo ports thing just re-inforces:

      Windows: Where do you want to go tomarrow?
      GNU/Linux: Where to you want to go today?
      BSD: Hey, are you guys comming or what?!?!

    2. Re:Zealotry by axxackall · · Score: 1
      Windows: Where do you want to go tomarrow?
      GNU/Linux: Where to you want to go today?
      BSD: Hey, are you guys comming or what?!?!

      You forgot:

      OSX: Hey, where do you think you are going to?

      --

      Less is more !
    3. Re:Zealotry by Anonymous Coward · · Score: 0

      *BSD: A dead OS walking.

      If *BSD was so great, people would use it.

      The only people who use it are elitists who don't want to run the same OS as everyone else.

    4. Re:Zealotry by Anonymous Coward · · Score: 0

      you're a complete ass clown, and gentoo is a piece of shit

    5. Re:Zealotry by CharterTerminal · · Score: 1

      The only people who use it are elitists who don't want to run the same OS as everyone else.

      You say that like it's a bad thing.

  7. No Gentoo! by The+Original+Yama · · Score: 1, Funny

    Let's keep this thread Gentoo-free, shall we?

    [note: I actually use Gentoo, but Gentoo fanboys usually get on my nerves]

    1. Re:No Gentoo! by Anonymous Coward · · Score: 0

      If that's what you want, then you should not have submitted this post. This thread was Gentoo free until you came.

    2. Re:No Gentoo! by Anonymous Coward · · Score: 0

      The point being made is that Gentoo groupies love to find an excuse to sing the praises of their distro and its Portage (emerge) system. Portage is like BSD's ports system, so a Gentoo post is inevitable in this article.

      Gentoo is very nice, but its fanboys can give it a bad name.

  8. Kudos to the author! by dodell · · Score: 5, Interesting

    The complaint of many people who don't want to switch to BSD from Linux is that there aren't binary packages available and that they don't want to compile everything in ports. This article demonstrates that, indeed, using the ports collection, it is possible to check out and install binary packages using the pkg-* utilities.

    There are tons of really neat things about FreeBSD; I won't list them here because they're probably quite off topic. But for anybody interested in learning more; feel free to contact me and/or check out the FreeBSD handbook and the FreeBSD diary.

    1. Re:Kudos to the author! by Anonymous Coward · · Score: 1, Interesting

      The complaint of many people who don't want to switch to BSD from Linux is that there aren't binary packages available and that they don't want to compile everything in ports. This article demonstrates that, indeed, using the ports collection, it is possible to check out and install binary packages using the pkg-* utilities.

      While this is wonderful news, does this mean us mere Linux users should want to switch to *BSD now?

    2. Re:Kudos to the author! by Anonymous Coward · · Score: 0

      Another reason is that I can't recompile my distro. The Linux kernel configuration system is just plain stupid.

    3. Re:Kudos to the author! by Anonymous Coward · · Score: 0

      You know, doing Solaris since the SunOS 4.1.x days and Linux and HP/UX and...

      I have found that tarballs that contain source code are pretty revolutionary in that respect.

      People only start to have troubles the minute they look for their rpm/deb/pkg/cpio files with precompiled bins of a software available as source.

      Maybe Unix isn't made for everyone like Linux users tend to make you believe.

  9. Re:Something wrong? by Anonymous Coward · · Score: 0

    Eric, is that you?

  10. Re:Something wrong? by 1s44c · · Score: 1

    So cut and paste the error message and we might be able to help.

  11. another one.. by swimmar132 · · Score: 1, Funny
    Another trick that I always liked is (and isn't listed in the article) is

    $ make install

  12. Envy by __aavhli5779 · · Score: 5, Interesting

    Reading the article just makes me yearn for a true BSD ports system on OS X.

    The closest thing available right now is DarwinPorts but it's horrendously incomplete; I don't think any good package system can get away with lacking any way to track installed packages or perform upgrades; not only is there no facility for system-wide upgrades, but even upgrading an individual package requires an explicit uninstall, download, and reinstall.

    I know that the Gentoo, Fink, and OpenDarwin folks are supposed to be collaborating on a unified package system for OS X. Does anyone in the know have any inklings that it might be like BSD ports? A BSD ports system does seem ideal for an OS that is, at the core, BSD.

    1. Re:Envy by Phroggy · · Score: 3, Informative

      Somebody is working on iPortage, a Cocoa-based GUI front-end to Gentoo's packaging system...

      --
      $x='S24;r)>63/* h@<5+oZ)32"5cz';$me='phroggy'x$];
      $x=~y+ -xz+\0-Tx+;print$_^chop$me for split'',$x;
    2. Re:Envy by hondo_san · · Score: 3, Informative
      My father has been a Mac person since there *was* a Mac, and quite a geek, to boot. Recently, he proposed doing a bunch of of server-y stuff on his G4, to which I responded "why potentially mess up your OS-X install when you can get FreeBSD on another server in the house?" (wired Cat-5 in every room.) He hooked me up with a 1GHZ Pentium with 512MB of memory, and a 40GB drive, now running in the basement with 4.8, horribly underutilized, but ready for anything.

      I certainly don't wish to cast dispersions on OS-X, but since I work w/ FBSD, I'm more comfortable with this scenario, as the "critical data", i.e. 2 years of stuff, is still in its place on the Mac, and the new server is ready and willing to do whatever we throw at it.

      So, mostly a fear of screwing up the OS-X stuff (I am nervous about a server-capable machine with a gui), I fall back to what I know. A colleague of his is running a WAP and Postgres from his Mac laptop, so, I suppose it's really about what you're comfortable with - provided it works, and is secure out of the box.

      Before you flame, in my noob days, I got r00ted in RH (6.2 default) and FBSD (OpenSSH). But that was a lifetime ago, three years. In that time, the modularity of FBSD, IMHO, has allowed me to more easily and efficiently stay current and less vulnerable.

      The ports tree rocks.

    3. Re:Envy by battlej · · Score: 2, Informative

      the netbsd pkgsrc collection works fine on osx...

      [netbsd-pkgsrc]

    4. Re:Envy by ^Case^ · · Score: 2, Interesting

      Does anyone in the know have any inklings that it might be like BSD ports?

      I'm no BSD ports expert, but from what I hear the Gentoo team is porting their Portage system, which is heavily inspired by the BSD ports system, to other platforms (OS X).

      Portage does support the things you mention, system-wide upgrades and tracking installed packages.

      Checkout the Gentoo website for more information.

    5. Re:Envy by Anonymous Coward · · Score: 0
      I certainly don't wish to cast dispersions on OS-X


      The word is "aspersions".

      Me fail English? That's unpossible!
    6. Re:Envy by evilviper · · Score: 1
      Before you flame, in my noob days, I got r00ted in RH (6.2 default) and FBSD (OpenSSH).

      What can I say??? That's really your own fault for not blocking access to SSH, and whatever else they exploited that you didn't specifically need publicly accessible.

      And BTW, if you are concerned with exploits, you should really use OpenBSD. Heavily audited, and new secrurity features as of 3.3 that make even exploitable bugs, exploitable no more. Systrace is installed so you can VERY finely control exactly what each application can do/access.

      In addition to that, OpenSSH has privlidge seperation enabled by default, and Apache is chroot'd by default.

      I trust my OpenBSD servers more than I would trust any other OS, even if it was without any daemons running (ie. browser bugs, e-mail bugs, etc.).
      --
      Slashdot gets worse every day... Pipedot: News for nerds, without the corporate slant
    7. Re:Envy by __aavhli5779 · · Score: 1

      Bookmarked!

      I'm going to be giving this a shot when I have some time tomorrow. Looks like I finally have an excuse to format a UFS partition.

      Thanks :)

    8. Re:Envy by burns210 · · Score: 1

      You completely undermined one of the fundemental goals of os X.

      Darwin, the userspace anyway, is LARGELY based on FreeBSD. The means that with your sexy gui, you get a neat kernel that is very freebsd like, so you, the freebsd-loving son, have a minimal ammount of learning(if any?) to take care of that.

      Secondly, a mac is infact a mac. which means a powerful gui. Things are easy to setup with the mac gui, things like servers, apache, etc. so that means your dad can fiddle around without having to learn a new system(the command-line).

      os X is all about bring the power of a unix command-line together with the ease of the mac gui, take advantage of that.

    9. Re:Envy by lahi · · Score: 2, Funny

      While you are probably right, you could have used fewer words:
      "netbsd works fine".

      -Lasse
      (Running NetBSD on my PCs, my good old MacIIci, and my iMac DV Special Edition)

    10. Re:Envy by Cloetus · · Score: 1

      DarwinPorts is slow because you have to compile everything (compile, compile, compile -- dang, I only got 667 G4). Fink used to break stuff, but seems better now.

      But yeah, I wish there were something better too

    11. Re:Envy by Anonymous Coward · · Score: 0
      So, basically what your post is saying is this:

      "I have a computer running FreeBSD"

      Err, well done.

  13. NICE TROLL, IDIOT by Anonymous Coward · · Score: 0

    smp-support-fo-freebsd.tbz

    heh, good one

  14. Re:Something wrong? by Anonymous Coward · · Score: 0

    You seem to be confused kind sir, as FreeBSD has no SMP support! Oh wait, yes it does actually. Nice troll though, some people are even trying to help you...Mods, do your thing! I suggest funny or troll, take your pick.

  15. Re:BSD is Dying by SiliconJesus101 · · Score: 5, Informative
    Well, actually it can in fact run quite a few Linux applications. A friend of mine (ack, how cliche') has a Quake III Arena server running on his BSD box and as far as I know most Linux ELF binaries can be coaxed to run on BSD without too much of a hassle (again from what my friend says).

    From http://www.freebsd.org/doc/en_US.ISO8859-1/books/h andbook/linuxemu.html , actually it can in fact run quite a few Linux applications.

    "In a nutshell, the compatibility allows FreeBSD users to run about 90% of all Linux applications without modification. This includes applications such as Star Office, the Linux version of Netscape, Adobe Acrobat, RealPlayer 5 and 7, VMWare, Oracle, WordPerfect, Doom, Quake, and more. It is also reported that in some situations, Linux binaries perform better on FreeBSD than they do under Linux." "In a nutshell, the compatibility allows FreeBSD users to run about 90% of all Linux applications without modification. This includes applications such as Star Office, the Linux version of Netscape, Adobe Acrobat, RealPlayer 5 and 7, VMWare, Oracle, WordPerfect, Doom, Quake, and more. It is also reported that in some situations, Linux binaries perform better on FreeBSD than they do under Linux."

    --

    "The strong will do what they want, the weak will do what they must."
    -Thucydides

  16. That's a brilliant idea. by Kickasso · · Score: 1

    If you just change the spelling a little bit and call it "e-chair", people will line up to try it.

    1. Re:That's a brilliant idea. by Anonymous Coward · · Score: 0
      Mr. Kickasso, here is a tip: *BSD is dying

      Hope this helps.

  17. It runs whereever Python does. by Anonymous Coward · · Score: 0

    Really. Download the source for BitTorrent, unpack it and run the script. The command line version "just works" out of the box if you have Python installed, graphical versions may not depending on what packages you've got installed.

    There wasn't much to "port" except dependancies.

  18. Yes, FreeBSD does run Linux. by Anonymous Coward · · Score: 4, Informative

    The install process asks you: "Do you wish to enable Linux compatibility?"

    If you answer yes, it installs a loader that translates a Linux program's system calls into FreeBSD ones. It works rather well.

    I've personally run the Linux binaries of Unreal Tournament 2003 on FreeBSD 4.8 with full OpenGL 3D acceleration on my Pentium 3/800 with an NVidia GEForce 3. It ran better than the Windows version does on the same hardware.

    Many other 3D accelerated Linux games (like Quake 3) also run just fine under FreeBSD.

    1. Re:Yes, FreeBSD does run Linux. by TheRaven64 · · Score: 2, Interesting
      One thing it doesn't do, however, is set up the Linux procfs. /proc on a Linux box has a different structure to that on a FreeBSD box, and a lot of the problems with running Linux software on FreeBSD come from this. Fortunately, FreeBSD can mount a Linux style procfs. The bad news is that this is not mounted by default. This prevents some Linux programs (such as the Half Life dedicated server) from running. To fix this you need to add the following line to your /etc/fstab
      linproc /compat/linux/proc linprocfs rw 0 0
      --
      I am TheRaven on Soylent News
    2. Re:Yes, FreeBSD does run Linux. by Anonymous Coward · · Score: 0

      The bad news is that this is not mounted by default.

      That's because most of us don't want it on by default. Poor luser can't edit his /boot/loader.conf and /etc/fstab files.

  19. Re:Something wrong? by Anonymous Coward · · Score: 0

    Mods, do your thing! I suggest funny or troll, take your pick.

    Yeah, why are there such redundant mod choices? I mean: Funny or Troll, what is the difference?

  20. Gentoo!! by Omicron32 · · Score: 0, Redundant

    But Portage is...

    Screw it, I can't be arsed. You've heard it all before.

    1. Re:Gentoo!! by RdsArts · · Score: 3, Interesting

      But Portage is...

      Broken?

      I killed my Gentoo install when it failed compiling some new ebuild, or just while upgrading, again. And after getting tired of it beeping while compiling Mozilla more often then if someone was typing their thesis in vi in command mode.

      Meanwhile everything compiles with FreeBSD on the same computer. So, hey...

  21. My beef with FreeBSDs port system.. by guacamole · · Score: 4, Insightful

    My biggest concern about FreeBSD's port collection is that it's essentially "unstable". That is, it seems to be changing on the time. Imagine that you need to setup a web server at one customer's site that requires a set of packages from the ports collection to make the site work. A couple of months later, if you need another server like this, perhaps for a different customer, you might end up with different versions of the tools even though you're running the same version of FreeBSD at both sites. Perhaps, this is a great system for someone who wants to always keep running the latest and greatest but for people who'd like a stable working environment this is an annoyance. Since, I am averse to change, I also like to update only say the packages that have serious bugs or security problems. But with the ports collection, there is no easy way to tell whether a package has been updated because of security issues/bugs or because the port maintainers simply feel like bumping the package version.

    It would be a whole lot better if the ports tree was frozen together with the OS when it's released and later only security and bug fixes were merged into the ports (preferably by patching the originally released package instead of just using the latest version, but that would be too much to ask from non-paid volunteers, although Debian does manage to do it).

    1. Re:My beef with FreeBSDs port system.. by Anonymous Coward · · Score: 0

      It would be a whole lot better if the ports tree was frozen together with the OS when it's released

      ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/IS O-IMAGES/

    2. Re:My beef with FreeBSDs port system.. by Metrol · · Score: 4, Insightful

      It would be a whole lot better if the ports tree was frozen together with the OS

      May your wish become reality... ala kazzam, *pooof*

      There ya go, now you can go to your favorite computer retail store, FreeBSD Mall, or even an absolutely free ISO, and get a RELEASE copy of FreeBSD.

      Yes, just recently (several years ago) FreeBSD started putting things on CDs. These CDs include on them at no extra charge... packages! These "packages" are pretty well frozen in time, and install the exact same code on every machine that CD is used on.

      later only security and bug fixes were merged into the ports

      Boy, demanding fella. Well, that's exactly what happens with the FreeBSD ports! Between application releases bug fixes go into the ports tree via patches, aka diff files.

      Case in point, there was a nasty layout problem with Konqueror that a KDE developer posted a patch for in the KDE bugzilla. I altered the files paths a bit and submitted to the KDE-FreeBSD project. This was then committed to the ports tree, which then produces new packages.

      This process took all of 2 days. I don't honestly know if any other OS has this fix in their build process or packages. My guess is that the rest of the Unix world either needs to manually patch and compile their KDE or wait for 3.1.3a.

      Bug fixes like this go into the applications in the ports tree every day, without having to wait for the originating project to release a new version. Best of all, since the FreeBSD ports utilize its own versioning scheme important changes, such as security fixes or major bugs, can flag "pkg_version" to let an admin know that there's an upgraded version to install.

      there is no easy way to tell whether a package has been updated because of security issues/bugs or because the port maintainers simply feel like bumping the package version.

      Port maintainers don't go willy nilly into bumping port revisions. Changes in maintanership, documentation, or other administrative issues do not warrant, nor do they get, a change in their port version.

      As for an easy way to determine why a port was upgraded, a quick visit to Fresh Ports can give you the exact reason why the port was upgraded, by who, and when.

      but that would be too much to ask from non-paid volunteers

      No it's not really. In fact, these kinds of issues are addressed every single day in the ports tree. It may look like a tangled mess upon first glance, but I assure you it is anything but. There's over 9000 applications being maintained for the OS. Every day many are added, a few deleted, and several are updated for a variety of reasons. This tree is as alive as the free software community it reflects.

      --
      The line must be drawn here. This far. No further.
    3. Re:My beef with FreeBSDs port system.. by the+uNF+cola · · Score: 1

      Install the binary packages provided by FreeBSD.org.

      They change slowly.

      --

      --
      "I'm not bright. Big words confuse me. But Wanda loves me and that should be enough for you." - Cosmo

    4. Re:My beef with FreeBSDs port system.. by junics · · Score: 2, Interesting

      It is possabile to download older makefiles (and whatever is required) of a port via the cvsweb interface on freebsd.org.
      It's not fun downloading individual files but it has saved my day on several occations.

      http://www.freebsd.org/cgi/cvsweb.cgi/ports/

    5. Re:My beef with FreeBSDs port system.. by the+uNF+cola · · Score: 3, Funny

      Dying? I hope it isn't doing T-shirts. Tie-dye is so lame.

      --

      --
      "I'm not bright. Big words confuse me. But Wanda loves me and that should be enough for you." - Cosmo

    6. Re:My beef with FreeBSDs port system.. by the+uNF+cola · · Score: 1

      Jerry Garcia is Dead, not BSD. Hell, I doubt any of them can carry a tune much less jam on a guitar.

      --

      --
      "I'm not bright. Big words confuse me. But Wanda loves me and that should be enough for you." - Cosmo

    7. Re:My beef with FreeBSDs port system.. by TCM · · Score: 2, Informative

      Just do a 'make package'. This will install the port and create a binary package which you can install with pkg_add(1) on other boxes.

      --
      Of course it runs NetBSD. BTC: 1NT7QvbetmANwaMzhpVL6
    8. Re:My beef with FreeBSDs port system.. by Billly+Gates · · Score: 1
      Some of the ports are beta or release candidate. If you look in /usr/ports/x you will find alpha and release candidate versions of things like PHP and GCC along side stable ones.

      IF anything the bsd ports are more stable then Gentoo. Case in point is php. If you look at the makefiles with vi you will see if they are marked release candidates or unstable. I found out that only php 3.x is considered stable with FreeBSD 4.8??

      I tried the rc php 4.3x and it would not compile with all all the libraries during an install. I then just went to php.net and comilied them myself . A royal pain in the ass but it worked.

      FreeBSD is very stable but some ports are old and reminiscent of Debian. Php was just one of my examples. Check the makefiles before you do a make install clean and do not always install the latest port version.

      Besides php I have not had any other problems with any of the ports.

    9. Re:My beef with FreeBSDs port system.. by crisco · · Score: 1
      This process took all of 2 days. I don't honestly know if any other OS has this fix in their build process or packages. My guess is that the rest of the Unix world either needs to manually patch and compile their KDE or wait for 3.1.3a.
      Debian Unstable

      Granted, it is binary packages for the most part (occasionally someone will mention apt-get -b source packagename) but releases and bugfixes come fast and furious in Debian Unstable.

      --

      Bleh!

    10. Re:My beef with FreeBSDs port system.. by rsax · · Score: 1
      Imagine that you need to setup a web server at one customer's site that requires a set of packages from the ports collection to make the site work. A couple of months later, if you need another server like this, perhaps for a different customer, you might end up with different versions of the tools even though you're running the same version of FreeBSD at both sites.

      You can generate packages (cd /usr/ports/www/whatever && make package) of whichever applications you want to install on a number of servers and then store them on a private server. Why use the ports collection each time and compile the same version of the same software when you can just do it once?

    11. Re:My beef with FreeBSDs port system.. by TexVex · · Score: 1

      Dyeing is done to clothes; dying happens to people pushed off really high buildings.

      --
      Fun with Anagarams! LADS HOST, SHALT DOS. HAS DOLTS. AD SLOTHS, HATS SOLD. ASS HO, LTD.
    12. Re:My beef with FreeBSDs port system.. by yanestra · · Score: 3, Informative
      My biggest concern about FreeBSD's port collection is that it's essentially "unstable". That is, it seems to be changing on the time.
      [...]
      It would be a whole lot better if the ports tree was frozen together with the OS when it's released and later only security and bug fixes were merged into the ports

      You have not much idea of what you are talking about, have you?

      Together with the OS comes a complete ports tree. If that ports tree is being changed to newer versions, it's because the sysadmin has set up a task to do so. It's no problem to keep an unchanged ports tree, additionally, if there is need for it.

      You can also make a binary package from a port, if you want to install software on several machines in the same way...

      BSD is an operating system for people who know what they're doing...

    13. Re:My beef with FreeBSDs port system.. by guacamole · · Score: 1

      Ok, but then if I don't cvsup the port tree I also won't be able to install the security updates/bug fixes.

    14. Re:My beef with FreeBSDs port system.. by yanestra · · Score: 2, Informative
      Ok, but then if I don't cvsup the port tree I also won't be able to install the security updates/bug fixes.

      Simply copy the old ports tree before cvsupping...:
      cp -Rp /usr/ports /usr/ports.dist

      That's all...

      (Ok, you might have to resolve dependencies on your own if you want to mix distribution/updated packages, but that really should be trivial. <grin>)

    15. Re:My beef with FreeBSDs port system.. by puppy0341 · · Score: 1

      the portsystem is in a CVS repository too: cvsweb

      So you can just check out the same revision / day as the system you want to clone, if you can't just copy it over.

    16. Re:My beef with FreeBSDs port system.. by phoenix_rizzen · · Score: 1

      The ports tree is tagged at the time of any FreeBSD release. If you install the ports tree during the FreeBSD installation, you will have the same ports tree across all installations.

      You can also use date tags in your ports supfiles to get the same ports tree across all your FreeBSD installations.

      And you can always just tar up the ports tree on one system, and untar is on all your other systems.

    17. Re:My beef with FreeBSDs port system.. by Anonymous Coward · · Score: 0

      I happen to agree. Too bad an honest discussion of this topic never takes place.
      Slashdot is pushing its own private agenda, and bringing out the truth would step
      on a few toes. You have to chalk it up to pure zealotry too, since BSD doesn't
      produce *ANY* revenue for Slashdot. As the old song goes "meet me tonight in dreamland ..."

    18. Re:My beef with FreeBSDs port system.. by stripes · · Score: 1
      A couple of months later, if you need another server like this, perhaps for a different customer, you might end up with different versions of the tools even though you're running the same version of FreeBSD at both sites.

      If you don't like that you can go to the first system and make packages out of the installed ports (literally type "make packages") and install them on the second system. There are more details in the article here.

  22. Warning for first time installers by AmiMoJo · · Score: 3, Informative

    When I installed FreeBSD for the first time, I noticed that on some configurations the default install is broken. Basically, if you have a small (500MB) /usr partition, you cannot instal ports by default as the standard newfs call used by the installer to create the initial filesystem does not allocate enough inodes.

    IIRC, you need to format /usr by hand using the "-i 2048" switch. This one got me the first time round, as it's not mentioned in any of the documentation.

    --
    const int one = 65536; (Silvermoon, Texture.cs)
    SJW, n: "Someone I don't like, and by the way I'm a fuckwit" - AC
    1. Re:Warning for first time installers by Anonymous Coward · · Score: 0

      No one in their right mind would use a 500MB /usr partition regardless of what OS they're using. The only exception would be an embedded system running off a solid state disk, in which case you would roll your own version of BSD/Linux/ports.

  23. Re:FreeBSD ported to slashcode! by Anonymous Coward · · Score: 0, Flamebait

    more chance of finding this in Linux than in FreeBSD :-P

  24. When all you have is a hammer ... by Anonymous Coward · · Score: 0, Troll
    ... every story is a nail.

    How many "ports" stories do we really need? Every other story in the BSD
    section is a rehash of the same "ports" story. Enough already.

  25. Zealotry? You asked for it! by Stephen+VanDahm · · Score: 4, Funny

    "[to save Slashdot users' bandwidth, a reply about how Gentoo GNU/Linux does most of this stuff, too, and some of it (like making package repositories) in an easier way has been deleted from this space]"

    I know that you're making fun of Gentoo zealots, but in the process, you're in danger of awaking a sleeping giant: The BSD Snob. Because you didn't think before posting, innocent Slashdot readers will be forced to read how the BSDs are better designed, more carefully developed, and are more portable across different platforms. Readers will even be forced to endure accusations that, being Linux users, they wet the bed. Gentoo certainly has its zealots, but BSD users have been looking down their noses at AT&T UNIX since, like, the 1970s. They're the original OS zealots!

    See, you've unleashed an Army of Darkness upon us all. Where's Bruce Campbell when you need him?

    Steve
    Linux and BSD User

    1. Re:Zealotry? You asked for it! by jo42 · · Score: 1


      BSD Good.
      Linux Bad.

  26. Re:BSD is Dying by DrSkwid · · Score: 4, Informative

    why yes, it does

    which would you like ?

    Red Hat
    /usr/ports/emulators/linux_base-6/pkg-descr
    /usr/ports/emulators/linux_base-8/pkg-descr

    or

    Debian
    /usr/ports/emulators/linux_base-debian/pkg-descr
    --
    There are places where the networks are not touching,and there are places where they are-Boeing's Lori Gunter
  27. Feeling of unease by Matey-O · · Score: 3, Interesting

    I've got a NetBSD box running as my external (wild, hairy, unsafe) webserver.

    I'd spent quite a bit of time learning Redhat 8, relearned Redhat 9, and again started over with NetBSD. (looking at mandrake, gentoo, and a raft of others as well)

    Why is is that these OS's are alike in name only? The package management is entirely different, the disk partitioning is entirely different, heck FINDING files is different ( find * | grep foo vs. find | grep foo)

    Enough is slightly different to make it feel like you're learning over from scratch (adduser v. useradd), and enough is COMPLETELY different to prove the point.

    One thing I've determined: If I get an applicant who says they know 'Unix' without specifying the flavor will get roundfiled.

    --
    "Draco dormiens nunquam titillandus."
    1. Re:Feeling of unease by Anonymous Coward · · Score: 0

      wow, how dumb you are. You don't search with "find | grep foo", dipshit, you search with "find / -name foo". RTFM and then complain.

    2. Re:Feeling of unease by Hatta · · Score: 2, Interesting

      Dunno, when I tried FreeBSD it was similar enough for me not to worry about it most of the time. I finally switched back to debian because I couldn't get acpi to function properly. But I don't see what the big deal is. There are a few differences, sure but BSD and GNU/Linux are not the same OS. What differences there are you can easily pick up on the fly.
      But why use grep with find? Why not just 'find . -name foo' This has the benefit that you can match on characteristics other than file name too. Like 'find . -name foo -ctime 1' to find files named foo that have changed in the past 24 hours. Or 'find . -name "fo*" -type d' to find directories that begin with the letters 'fo'. You can even use the exec flag to run a command on each file. Find has become so much more useful since I stopped using it with grep.

      --
      Give me Classic Slashdot or give me death!
    3. Re:Feeling of unease by Anonymous Coward · · Score: 0

      One thing I've determined: If I get an applicant who says they know 'Unix' without specifying the flavor will get roundfiled.

      I've been working with Unix for 17 years.

      If I listed all the flavors I've touched, you'd have 1/2 a page.

    4. Re:Feeling of unease by Anonymous Coward · · Score: 0
      but BSD has the exact same problem! There are many differences between FreeBSD, NetBSD, OpenBSD, etc.

      If you're going to talk about one specific BSD, say FreeBSD, then at least compare inconsistencies to only one Linux distro, say Gentoo.

    5. Re:Feeling of unease by Anonymous Coward · · Score: 1, Informative

      The differences that exist aren't really all that big - I regularly work on Solaris, AIX, FreeBSD, NetBSD, Debian, Redhat and Mandrake. Yes, there are differences, but checking the syntax via 'man' or even 'info' (if you have info pages installed of course) usually clears it up pretty quickly. Only real problem I have is when I have to work on pesky Windows platforms. The syntax is REALLY different there.

    6. Re:Feeling of unease by corrosiv · · Score: 1


      there is nothing alike about the names "redhat" and "netbsd"

      they are different OSs and people complaining about differences as minor as that are missing the point. when you get a new car do you complain that the knobs are not placed exactly as your old car? you paid for the chassis - the placement of the headlight switch is insignificant (unless it is under the seat, in which case it serves you right if you bought it). IMO, unix gets easier if you spend less time reading and more time doing.

    7. Re:Feeling of unease by Anonymous Coward · · Score: 0
      One thing I've determined: If I get an applicant who says they know 'Unix' without specifying the flavor will get roundfiled.

      I might specify to someone that I "know Unix", but that's because I've been using it for 14 years now and have been exposed to Redhat Linux, Gentoo Linux, Debian Linux, Mandrake Linux, Slackware Linux; NetBSD; OpenBSD; SunOS 4.0, 4.1.1, 4.1.2, 4.1.3, 4.1.3_U1, 4.1.4; Solaris 2.3, 2.4, 2.5, 2.5.1, 2.6, 7, 8; IRIX 5.2, 5.3, 6.2; AIX 3.2.5, 4.1; NeXTStep 3.x (on both NeXT hardware and PC); Darwin 6.6 (a/k/a Mac OS X); Apple A/UX; NEC SVR4; and, ConvexOS. And maybe Interactive Unix, but I can't remember for sure.

      The point is, I'm used to switching from one dialect to another. There's sort of an old idea in the Unix world that if you know one version of Unix, you are maybe a little suspect. But, if you know two or more, learning the others should be no biggie for you.

  28. Re:Sad news ... Stephen King dead at 55 by Anonymous Coward · · Score: 0

    In case you haven't heard, *BSD is dying.

  29. What flamebait! by GomezAdams · · Score: 0, Flamebait

    Mod this up to at least a 3 - it's FUNNY! Where's that sense of humor on a Sunday morn?

    --
    Too lazy to create a sig...
  30. auto dependency install by Anonymous Coward · · Score: 1, Informative

    the author didn't mention, but making your package repository fetchable via ftp (or http i guess), and seeting PACKAGEROOT=ftp://yourserver allows you to do pkg_add -r from your machines, and the dependencies will fetch and install themselves.

  31. I'm surprised no one has mentioned portupgrade... by Edward+Scissorhands · · Score: 5, Informative

    There's a great utility in the ports tree called portupgrade. It's very handy and allows for quick and easy upgrading of your ports.

    It lives in /usr/ports/sysutils/portupgrade

    Check it out. Start with the manual page (man portupgrade) after you install it, then use Google for more info. It's well worth it.

  32. Lavigne? by AntiOrganic · · Score: 1

    "OnLamp's Dru Lavigne demonstrates several of these tricks to simplify your life."

    If there's any family connection, this article was written for him by an editor, and repackaged to sell his image.

  33. Re:BSD is Dying by Anonymous Coward · · Score: 0

    Why settle for 90% when I can have 100% on a free Unix, such as Linux itself?

  34. Re:Something wrong? by craig2787 · · Score: 1

    Dru Lavigne is a girl.

  35. Dru's a girl... by Anonymous Coward · · Score: 0

    "Dru Lavigne (snip) where she teaches"

  36. 9000 ports can't be ALL wrong by Anonymous Coward · · Score: 0

    FreeBSD carries more free packages than debian! That ports system is great.

    1. Re:9000 ports can't be ALL wrong by Anonymous Coward · · Score: 0

      Yeah, and unlike Debian, they're not 2 years out of date.

    2. Re:9000 ports can't be ALL wrong by DashEvil · · Score: 1

      ...and unlike everyone else here, you're both morons.

      --
      -If God wanted people to be better than me, he would have made them that way.
  37. Worthless page by bluGill · · Score: 4, Informative

    That page is almost worthless. Don't waste your time reading it, the only tip worth anything is the one about doing a "make readmes". Everything else is better accomplished by using the portupgrade scripts.

    Trust me on this one, once you use portupgrade you will not go back to the pkg_* commands.

  38. use packages by Anonymous Coward · · Score: 1, Informative

    If your /usr directory is that small then you should not be using ports anyway. Just install binary packages using /stand/sysinstall instead. That's what I do on my old Cyrix 5x86/100 mhz machine.

  39. The latest FBSD already has README.htmls by Istealmymusic · · Score: 3, Informative

    Thought I'd save someone some unnecessary building.

    --
    "The lesson to be learned is not to take the comments on slashdot too literally." --Vinnie Falco, BearShare
  40. Re:FreeBSD ported to slashcode! by tarius8105 · · Score: 1

    Geez, now the BSD Trolls are getting modded as funny!

  41. Re:BSD is Dying by Anonymous Coward · · Score: 0

    Yes that would be true *IF* BSD was dying. But if I remember a quote that accurately depicts BSD position..."Rumors of my death have been greatly exaggerated".

  42. Portupgrade! by Piquan · · Score: 4, Informative

    Every FreeBSD admin should know about portupgrade.

    It's in ports. It has several tools. One of them, portupgrade, upgrades ports. Another, pkgdb, fixes your ports db by updating out-of-date deps, merging multiple versions of the same port, etc. A third, pkg_version, is like port_version but much faster. A fourth, portsclean, cleans any debris from using ports, such as outdated shared libs.

    Get it. Learn it. Love it.

    1. Re:Portupgrade! by bmah · · Score: 4, Informative

      > A third, pkg_version, is like port_version but much faster.

      Actually, pkg_version is in the base system, portversion is the program that comes with portupgrade.

      portversion is faster because it relies on a database of installed packages, whereas pkg_version depends only on knowing what ports are installed (via pkg_info) plus either an up-to-date ports tree or an INDEX file. Both are useful IMHO.

      But I agree with the general sentiment...the whole portupgrade package is extremely useful, and it's one of the first things that goes on a system that I install if I think I'll ever be upgrading ports on it.

  43. Re:Something wrong? by cozman69 · · Score: 1

    Make sure you're running FreeBSD 5.1 for in order for that package to install.

    Also, your post isn't funny. Just redundant.

  44. Re:I don't want to start a holy war here by DashEvil · · Score: 1

    That's funny, my P120Mhz FreeBSD 4.8 system over here with one 1.6gig drive, and another 2gig drive can copy a 17MB file, from one partition to another, in less than 20 minutes. I have decided that you are either 1) Hopelessly retarded and couldn't set up a system to save your life (of course, you will claim that I am merely a BSD troll flaming down on you for bashing my 'pride and joy', but hey, whatever makes you feel better about your incompitanc), or 2) Full of shit.

    FreeBSD has NEVER given me performance problems, and performance, is honestly one of the reasons I choose it above all else.

    But again, hey, it's a free world, do what you like.

    --
    -If God wanted people to be better than me, he would have made them that way.
  45. Re:I don't want to start a holy war here by DashEvil · · Score: 1

    Actually, that very same box is serving as a pretty nice Quake 3 dedicated server for my little lan going on here. So you have fun with your NT, and Code Red. :)

    --
    -If God wanted people to be better than me, he would have made them that way.
  46. Finding with grep by Thornae · · Score: 2, Informative
    find is even handier when you incorporate grep into it, say to find certain textfiles:
    find . -iname "*txt" -exec grep -Hi foo \{\} \;


    One of my most common uses for this is to look for ports that do certain things not included in their one line description, eg:
    find /usr/ports -name "pkg-descr" -exec grep -Hi quicktime \{\} \;
    Just a quick FYI, in case you were unaware of this handy thing.
    --
    |>
    Here be Dragons
  47. Re:BSD is Dying by Anonymous Coward · · Score: 0

    Sigh... I wish that were right, I cant tell you how many times I've had to install something and spend 3 hours executing 'brandelf' on half of the package with FreeBSD

  48. Re:BSD is Dying by Anonymous Coward · · Score: 0

    90% of all Linux applications without modification. This includes applications such as Star Office, the Linux version of Netscape, Adobe Acrobat, RealPlayer 5 and 7, VMWare, ...

    Awesome, I'm installing FreeBSD right now because VMware 4.x was the only thing holding me back.. yeehaw!

    Oh wait... Now you're gonna say it doesn't really run all those apps...

    Sorry, as much as I'd like to run *BSD, Linux is the only way to be productive.