1a96e Ways to improve FreeBSD - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Ports & Packages > Installation and Maintenance of FreeBSD Ports or Packages

Installation and Maintenance of FreeBSD Ports or Packages Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software).

Reply
 
Thread Tools Display Modes
  #1  
Old December 24th, 2008, 03:21
martin2091 martin2091 is offline
Junior Member
 
Join Date: Dec 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Lightbulb Ways to improve FreeBSD

I installed FreeBSD yesterday and I was happy about the nice features of this OS. However, I removed it today and came back to Debian. The principal factor which moved me to do that was that I don't want to compile everything from scratch. I know I can use packages but there aren't packages for every port and they are out of date. If the FBSD project focused more in packages that would be great.

I think there are no big reasons to use ports instead of packages. Today's computers are fast enough to handle with precompiled programs. Ports are ok if you have a great computer but not everybody does.

Another problem with packages: When you install several ones pkg_add waits until a package is completely installed in order to start downloading the others. What about downloading all .tbz files first and install them later?

Using something like apt won0t be a bad idea.

Flash is another problem but that is not a FreeBSD fault at all.

Good Luck with this amazing OS.
Reply With Quote
  #2  
Old December 24th, 2008, 03:56
vermaden's Avatar
vermaden vermaden is offline
Giant Locked
 
Join Date: Nov 2008
Location: pl_PL.lodz
Posts: 2,193
Thanks: 59
Thanked 633 Times in 349 Posts
Default

Quote:
Originally Posted by martin2091 View Post
Using something like apt won0t be a bad idea.
APT is not so great, especially in Debian with all those packages split forever: -full -empty -common -dev -docs -help -output -asd -wtf ...[/QUOTE]

Quote:
Originally Posted by martin2091 View Post
Flash is another problem but that is not a FreeBSD fault at all.
Tell that to some smartass @ Adobe
__________________
Religions, worst damnation of mankind.
"FreeBSD has always been the operating system that GNU/Linux should have been." Frank Pohlmann, IBM
http://vermaden.blogspot.com
Reply With Quote
  #3  
Old December 24th, 2008, 04:11
cliedo cliedo is offline
Junior Member
 
Join Date: Nov 2008
Location: michigan
Posts: 83
Thanks: 4
Thanked 0 Times in 0 Posts
Default

thanx I know I am using a great operating system as are the other users of this forum
Reply With Quote
  #4  
Old December 24th, 2008, 18:20
cajunman4life cajunman4life is offline
Member
 
Join Date: Nov 2008
Location: Arizona, USA
Posts: 119
Thanks: 3
Thanked 18 Times in 11 Posts
Default

Personally, I use FreeBSD *because* of the ports system. To each his own I guess.
Reply With Quote
  #5  
Old December 26th, 2008, 13:00
graudeejs's Avatar
graudeejs graudeejs is offline
Style(9) Addict
 
Join Date: Nov 2008
Location: Riga, Latvia
Posts: 4,525
Thanks: 422
Thanked 607 Times in 475 Posts
Default

@ martin2091 << so what, you can install packages and only compile ports if package ain't available, you don't need to build everything from source.
Mix all you want. I don't see problem there.
Reply With Quote
  #6  
Old December 26th, 2008, 13:22
danger@'s Avatar
danger@ danger@ is offline
FreeBSD Developer
 
Join Date: Oct 2007
Location: Bratislava, Slovakia
Posts: 774
Thanks: 4
Thanked 165 Times in 84 Posts
Default

I thought we are building packages for every port in the ports tree in its current version (except the ones that do not build?)...

You're probably using the -RELEASE version and thus downloading packages build in the time the given FreeBSD version was released. I would recommend you to read the handbook.

http://www.freebsd.org/doc/en_US.ISO...ges-using.html

Quote:
Originally Posted by handbook
Note: pkg_add(1) will download the latest version of your application if you are using FreeBSD-CURRENT or FreeBSD-STABLE. If you run a -RELEASE version, it will grab the version of the package that was built with your release. It is possible to change this behavior by overriding PACKAGESITE. For example, if you run a FreeBSD 5.4-RELEASE system, by default pkg_add(1) will try to fetch packages from ftp://ftp.freebsd.org/pub/FreeBSD/po...elease/Latest/. If you want to force pkg_add(1) to download FreeBSD 5-STABLE packages, set PACKAGESITE to ftp://ftp.freebsd.org/pub/FreeBSD/po...stable/Latest/.
And as of the ability to download all packages before the installation itself, that is possible as well, you just use ftp(1) (or any other ftp client) to connect to the desired ftp mirror and you can download your packages in advance, say to /usr/packages and then cd /usr/packages && pkg_add *.
__________________
Looking for administrator? http://www.syscare.sk
Reply With Quote
  #7  
Old December 26th, 2008, 13:27
Oko's Avatar
Oko Oko is offline
Member
 
Join Date: Nov 2008
Location: Kosovo, Srbija
Posts: 326
Thanks: 27
Thanked 66 Times in 49 Posts
Default

Quote:
Originally Posted by martin2091 View Post
I think there are no big reasons to use ports instead of packages. Today's computers are fast enough to handle with precompiled programs. Ports are ok if you have a great computer but not everybody does.

Another problem with packages: When you install several ones pkg_add waits until a package is completely installed in order to start downloading the others. What about downloading all .tbz files first and install them later?

Using something like apt won0t be a bad idea.

Flash is another problem but that is not a FreeBSD fault at all.

Good Luck with this amazing OS.
What you are suggesting are not improvements to FreeBSD but to make it look more like a Debian which is OS of your choice.
That already exists. You can Google for Debina GNU/ FreeBSD
which is dead due to the licensing issues.

What does Flash has to do with FreeBSD? Debian would also not have a Flash if Adobe didn't decide to support it due to its popularity. By the way the guy in Adobe who is deciding for which platforms should Flash be compiled is Linux guy. Since it also compiles for Solaris I see no reason that it could not work on FreeBSD as well. Speaking of Flash what happened with free software only concept? Gone with the GPLv3
Reply With Quote
  #8  
Old December 28th, 2008, 11:19
kamikaze's Avatar
kamikaze kamikaze is offline
Member
 
Join Date: Nov 2008
Location: /earth/europe/germany
Posts: 366
Thanks: 6
Thanked 66 Times in 45 Posts
Default

Quote:
Originally Posted by danger@ View Post
And as of the ability to download all packages before the installation itself, that is possible as well, you just use ftp(1) (or any other ftp client) to connect to the desired ftp mirror and you can download your packages in advance, say to /usr/packages and then cd /usr/packages && pkg_add *.
There's no automatic dependency tracking this way. The only comfortable way for using packages I know about is # portupgrade -P.
__________________
sysutils/bsdadminscripts: binary package maintenance, library integrity checking, ...
sysutils/automounter: amd(8) based automounting without HAL
contact: kamikaze@bsdforen.de

Disclaimer: My posts represent my perception. Errors and incompleteness are to be expected, I deny any responsibility to know everything.
Reply With Quote
  #9  
Old December 28th, 2008, 15:20
cajunman4life cajunman4life is offline
Member
 
Join Date: Nov 2008
Location: Arizona, USA
Posts: 119
Thanks: 3
Thanked 18 Times in 11 Posts
Default

Quote:
Originally Posted by Oko View Post
Since it also compiles for Solaris I see no reason that it could not work on FreeBSD as well.
Solaris != BSD

Solaris, since SunOS 4 (which was re-branded as Solaris 1), has been SVR4 based (system V, release 4), which makes it closer to Linux than BSD... But, either way. Flash works on MacOS X, which borrowed a bit from BSD... There's no doubt it can be done technically, it's a matter of "politics".
Reply With Quote
  #10  
Old December 29th, 2008, 00:03
Oko's Avatar
Oko Oko is offline
Member
 
Join Date: Nov 2008
Location: Kosovo, Srbija
Posts: 326
Thanks: 27
Thanked 66 Times in 49 Posts
Default

Quote:
Originally Posted by cajunman4life View Post
Solaris != BSD

Solaris, since SunOS 4 (which was re-branded as Solaris 1), has been SVR4 based (system V, release 4), which makes it closer to Linux than BSD... But, either way. Flash works on MacOS X, which borrowed a bit from BSD... There's no doubt it can be done technically, it's a matter of "politics".
You start to look ridiculus with your attempts to flame me.
I meant that it looked like Flash was Posix complaint as it was compiling on Solarix, OS X, and Linux. Do I know that it is Poxis complaint? No, I do not as I have never seen its source code. I have used SUNs OS and Solaris for more than 10 years.
For the record since I see that it bothers you Ultra 10 was advertising as low end graphical station so Solaris was running with the GUI on it. That how we used it at Ohio State.

Do I think that FreeBSD is snappier than Solaris? You bet I do at least because it doesn't have to be backward compatible. Just try to use 15 year old binaries for FreeBSD 2 something on FreeBSD 7.0 and you will know what I am talking about. Is Solaris good on Sparc? Yes I think it is quite decent. Is it good on i386? No it sucks. I also can not stand Java in any shape or form.

I used Blade 1000 to illustrate that FreeBSD sparc64 port doesn't
support even very old hardware. It doesn't support Blade 2000, Blade 1500, 2500, and nothing worth of mentioning on the server side.
You can RTFM http://www.freebsd.org/platforms/sparc.html if you do not trust me.
On the another hand I bet you will be fired even if you suggest your boos to replace Solaris with anything else on SUN's hardware because it would void manufacturer warranty.

I do not like portupgrade but many people do. That is way there
are usually 5 different ways to accomplish the same things on
any Unix running machine. I used to run FreeBSD but I do not
anymore because OpenBSD fits better my needs. If I need to
used it again I will do it without hesitation.

Finally, I am not IT professional but one of the reason I got into BSDs was that I was seek of IT professionals like you telling me how stupid I am.

Cheers,
OKO

Last edited by Oko; December 29th, 2008 at 00:23.
Reply With Quote
  #11  
Old December 29th, 2008, 02:35
hedwards hedwards is offline
Member
 
Join Date: Nov 2008
Posts: 189
Thanks: 3
Thanked 18 Times in 16 Posts
Default

Quote:
Originally Posted by kamikaze View Post
There's no automatic dependency tracking this way. The only comfortable way for using packages I know about is # portupgrade -P.
You can also go # portmaster -a

I've grown attached to portmaster just because it's much faster to install and does all the stuff I'm usually wanting to do.
Reply With Quote
  #12  
Old December 29th, 2008, 06:19
r-c-e r-c-e is offline
Junior Member
 
Join Date: Dec 2008
Posts: 51
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Quote:
Originally Posted by martin2091 View Post
I think there are no big reasons to use ports instead of packages. Today's computers are fast enough to handle with precompiled programs. Ports are ok if you have a great computer but not everybody does.
Ports allow much greater control over how packages are built. Just look at the ports Makefile for any number of packages and you can see how you can tailor different things, and "make config" is great.
__________________
realfreebsdtips.com
Reply With Quote
  #13  
Old January 2nd, 2009, 15:15
cajunman4life cajunman4life is offline
Member
 
Join Date: Nov 2008
Location: Arizona, USA
Posts: 119
Thanks: 3
Thanked 18 Times in 11 Posts
Default

Quote:
Originally Posted by Oko View Post
You start to look ridiculus with your attempts to flame me.
I meant that it looked like Flash was Posix complaint as it was compiling on Solarix, OS X, and Linux. Do I know that it is Poxis complaint? No, I do not as I have never seen its source code. I have used SUNs OS and Solaris for more than 10 years.
For the record since I see that it bothers you Ultra 10 was advertising as low end graphical station so Solaris was running with the GUI on it. That how we used it at Ohio State.

Do I think that FreeBSD is snappier than Solaris? You bet I do at least because it doesn't have to be backward compatible. Just try to use 15 year old binaries for FreeBSD 2 something on FreeBSD 7.0 and you will know what I am talking about. Is Solaris good on Sparc? Yes I think it is quite decent. Is it good on i386? No it sucks. I also can not stand Java in any shape or form.

I used Blade 1000 to illustrate that FreeBSD sparc64 port doesn't
support even very old hardware. It doesn't support Blade 2000, Blade 1500, 2500, and nothing worth of mentioning on the server side.
You can RTFM http://www.freebsd.org/platforms/sparc.html if you do not trust me.
On the another hand I bet you will be fired even if you suggest your boos to replace Solaris with anything else on SUN's hardware because it would void manufacturer warranty.

I do not like portupgrade but many people do. That is way there
are usually 5 different ways to accomplish the same things on
any Unix running machine. I used to run FreeBSD but I do not
anymore because OpenBSD fits better my needs. If I need to
used it again I will do it without hesitation.

Finally, I am not IT professional but one of the reason I got into BSDs was that I was seek of IT professionals like you telling me how stupid I am.

Cheers,
OKO
Look, for the record, I'm not trying to flame or ridicule you. I don't have a personal agenda against you (or anyone else for that matter). But since my replies to your posts touch you on a personal level, from here on out I will no longer reply to your posts. I'm sorry you feel this way.

I wouldn't recommend to anyone to replace Solaris on SUN hardware in a work environment... what I do in my home does not carry over to my job. I use BSD at home because I choose to. I use whatever else at work because someone else higher than me chose to.

I'm a firm believer in using the right tool for the job, which for me right now happens to be BSD (or specifically, FreeBSD). I have nothing against OpenBSD or any other OS for that matter, if it works for what you need then great. I still have a windows machine to use for AutoCAD because AutoCAD simply doesn't run on any other platform.

Again, my intent was not to ridicule you, or tell you "how stupid you are," so I apologise that you've taken my comments to mean that.
Reply With Quote
  #14  
Old January 4th, 2009, 00:21
gongoputch gongoputch is offline
Junior Member
 
Join Date: Jan 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

FreeBSD is geared towards using tools in recombinent ways to
create what functionality you need. This is why I like it so
much. Downloading packages only required a few lines of script
and a working knowledge of how pkg_info works.

Code:
#!/bin/sh

fetch_deps ( )
{
PKG=$1

        pkg_info -r ${PKG}.tbz | grep "Dependency:" | awk '{print $2}' | while read DEP
        do
                echo "fething dep ${DEP}"
                fetch ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.3-release/All/${DEP}.tbz
                fetch_deps ${DEP}
        done
}

fetch ftp://ftp.freebsd.org/pub/FreeBSD/po...Latest/kde.tbz
fetch_deps kde
Next time, don't give up so easy.

Last edited by danger@; January 4th, 2009 at 01:16. Reason: add code tags
Reply With Quote
  #15  
Old January 4th, 2009, 00:50
SeanC SeanC is offline
Member
 
Join Date: Nov 2008
Location: Connecticut, USA
Posts: 126
Thanks: 13
Thanked 6 Times in 4 Posts
Default

Quote:
Originally Posted by kamikaze View Post
There's no automatic dependency tracking this way. The only comfortable way for using packages I know about is # portupgrade -P.
Wouldn't using portupgrade with -PFr options download the required packages locally, then portupgrade -a to finish the upgrade offline?

Or is that asking for trouble?
Reply With Quote
  #16  
Old January 4th, 2009, 02:21
gongoputch gongoputch is offline
Junior Member
 
Join Date: Jan 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I put an improved version of this up on my wiki at :

http://bsdtips.utcorp.net/mediawiki/...ndant_packages
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


All times are GMT +1. The time now is 10:00.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0