216ba Stable and Release - 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 21st, 2008, 16:50
cdiem cdiem is offline
Junior Member
 
Join Date: Nov 2008
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Default Stable and Release

Hello,

I'm fairly new to FreeBSD. Using packages only, on a lappy.
As far as I understand it, FreeBSD is separated in 2 - base system and packages.
Today I ran portaudit and it showed 17 packages with flaws (using the default RELEASE packages, without setting anything with PACKAGESITE).
My question is, is it ok to point PACKAGESITE to 7.0-Stable and upgrade these packages, while having the base system at 7.0-RELEASE; is this going to break the system anyhow? Will I be able to upgrade then to 7.1-RELEASE after it is released within a few months, with the mixed system I'm going to have?
So, basically, is it OK to have the base system at 'RELEASE' and the packages at 'STABLE'?
Reply With Quote
  #2  
Old December 22nd, 2008, 00:20
jb_fvwm2 jb_fvwm2 is offline
Senior Member
 
Join Date: Nov 2008
Posts: 1,385
Thanks: 60
Thanked 145 Times in 130 Posts
Default

"base"; then ( /ports/ OR ports-via-packages OR mix)

portaudit, vulnerabilities within the packages_OR_ports
packages are less recent than ports. To "maybe fix" portaudit you
would install ports not packages, but even the ports Makefiles/etc
lag behind somewhat the fixes for the vulnerabilities.
.........
stable, release, can refer to the "uname -a" base version
as well as the source of packages
.........
leaving out a few explanations I don't have time to think
through before typing...
Reply With Quote
  #3  
Old December 22nd, 2008, 01:38
Lowell's Avatar
Lowell Lowell is offline
Junior Member
 
Join Date: Nov 2008
Location: Boston area, USA
Posts: 94
Thanks: 0
Thanked 18 Times in 16 Posts
Default

Quote:
Originally Posted by cdiem View Post
So, basically, is it OK to have the base system at 'RELEASE' and the packages at 'STABLE'?
Yes. Completely normal.
__________________
One of the best things about FreeBSD is its documentation.
Your question may already be answered in the FAQ...
Reply With Quote
The Following User Says Thank You to Lowell For This Useful Post:
cdiem (December 22nd, 2008)
  #4  
Old December 22nd, 2008, 12:35
cdiem cdiem is offline
Junior Member
 
Join Date: Nov 2008
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Thank you for your answers; it was just this info that I needed; I'm going to try it. Thanks again.
Reply With Quote
  #5  
Old December 23rd, 2008, 04:11
dracodoc dracodoc is offline
Junior Member
 
Join Date: Nov 2008
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
Default

It is possible, but there are problems. I learned them in a hard way. -- I'm just a beginner user so please correct me if I said anything wrong.
When you set your PACKAGESITE to stable, you can pkg_add -r someapplication, but it will need other dependencies, and the version of your system will not match in most case -- since 7.0 release is not new. Then your pkg install will fail because pkg_add will not install needed new pkg automatically, you can force install the application but it will have problem for sure.
If you install new application by ports, ports will install needed dependencies automatically. But the problem is, almost all your libraries will need update, and it can take a very long time to install firefox3 -- I tried but decided to cancel it.
So the better idea should be install 7.1 release RC now or wait for official release of 7.1. That way your library in userland will be more up to date and need less compilation.
Reply With Quote
  #6  
Old December 23rd, 2008, 08:04
fender0107401's Avatar
fender0107401 fender0107401 is offline
Member
 
Join Date: Nov 2008
Location: China, Beijing.
Posts: 298
Thanks: 41
Thanked 10 Times in 9 Posts
Default

I prefer the ports, the ports tree is shared by "current", "stable" and "release", but every ports have a cvs_tag, I think the cvs_tag is a declaration of the base_system request. The package system may don't work like it.

FreeBSD's Base system have two branch: that is "curent" and "stable".
The "release" is just a snapshot of "stable" branch in some time point.

Beyond the ports, FreeBSD alse have "doc" and "web" tree, they also shared by every branch.

Recently, I find the "doc" tree is every interesting, it can help me to maintain a fresh documentation in /usr/share/doc.
__________________
Just be yourself.

Last edited by fender0107401; December 23rd, 2008 at 09:23. Reason: typo
Reply With Quote
  #7  
Old December 23rd, 2008, 11:44
cdiem cdiem is offline
Junior Member
 
Join Date: Nov 2008
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Default

You were right actually; I had to 'pkg_delete -a' after pointing to stable, because several packages did not upgrade with 'portupgrade -varRPP'. I did 'pkg_add -r xorg' for 7-STABLE after deleting it all, which again had some problems with dependencies..I guess I will just wait for the packages from 7.1-release (which seems to be coming soon).

I'm just curious, cause after doing 'pkg_add -r xorg' for the 7.0-RELEASE, portaudit showed several packages with security flaws, one of them xserver. Is there a way to fix this if I do not want to recompile xorg?
I mean, it's a laptop; when compiling anything it usually overheats, and that's why I use packages; the only cure seems to be to set the highest CPU frequency lower, which by the way needs kernel recompiling for 7.0-release (as stated in the HOWTO's section of this forum, the CPU scalling thread). But, as I said, I'm new in FreeBSD; probably there's also another way to lower down the temperature when compiling applications, which the more experienced FreeBSD gurus are aware of - is there one?
Reply With Quote
  #8  
Old December 23rd, 2008, 14:38
fender0107401's Avatar
fender0107401 fender0107401 is offline
Member
 
Join Date: Nov 2008
Location: China, Beijing.
Posts: 298
Thanks: 41
Thanked 10 Times in 9 Posts
Default

Code:
portupgrade --PP
This command will help you to upgrade your packages without compilation, If the developer have compiled it for users.
I found it in portupgrade's man page, and perhaps it will need you to update the ports_tree before you run it.
I am not sure about this command option, because I never used package.

FreeBSD is very flexible it have two application management system: package and ports. If you run it on laptop, the package is a smart choice.
__________________
Just be yourself.
Reply With Quote
  #9  
Old December 23rd, 2008, 17:25
dracodoc dracodoc is offline
Junior Member
 
Join Date: Nov 2008
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
Default

From the man pages for pkg_add(1), it should be able to get dependency packages automatically:
3. Scan all the package dependencies (from @pkgdep directives, see pkg_create(1)) are read from the packing list. If any of these required packages is not currently installed, an attempt is made to find and install it; if the missing package cannot be found or installed, the installation is terminated.

But in my experience, with FreeBSD release 7.0, changed PKGSITE to stable, pkg_add will not install dependency packages needed for firefox3. Maybe because there is no readily available packages for those libraries?
Reply With Quote
  #10  
Old December 24th, 2008, 16:16
Lowell's Avatar
Lowell Lowell is offline
Junior Member
 
Join Date: Nov 2008
Location: Boston area, USA
Posts: 94
Thanks: 0
Thanked 18 Times in 16 Posts
Default

Quote:
Originally Posted by fender0107401 View Post
Code:
portupgrade --PP
This command will help you to upgrade your packages without compilation, If the developer have compiled it for users. I found it in portupgrade's man page, and perhaps it will need you to update the ports_tree before you run it. I am not sure about this command option, because I never used package.
It uses the ports tree to determine the dependencies, regardless of whether you're using ports or packages. Therefore, you are definitely better off to have the ports up to date (and build or fetch a new INDEX file) before using it for an update.

If you have updated your base system across major releases, you need to update all of your ports, even those that are at the current version. This is because they are linked against the old system libraries. There is a portupgrade option (-f) that will help with this. In the future, this will become less of a problem because of new capabilities in the base system, but it will still be some time before a version of FreeBSD is released with those new capabilities.

Quote:
FreeBSD is very flexible it have two application management system: package and ports. If you run it on laptop, the package is a smart choice.
It's really one management system, with two different ways to install the applications. Once installed, there is no difference between programs you installed from packages as opposed to those you built from source.
__________________
One of the best things about FreeBSD is its documentation.
Your question may already be answered in the FAQ...
Reply With Quote
  #11  
Old December 24th, 2008, 17:41
fender0107401's Avatar
fender0107401 fender0107401 is offline
Member
 
Join Date: Nov 2008
Location: China, Beijing.
Posts: 298
Thanks: 41
Thanked 10 Times in 9 Posts
Default

Quote:
Originally Posted by Lowell View Post
If you have updated your base system across major releases, you need to update all of your ports, even those that are at the current version. This is because they are linked against the old system libraries. There is a portupgrade option (-f) that will help with this. In the future, this will become less of a problem because of new capabilities in the base system, but it will still be some time before a version of FreeBSD is released with those new capabilities.
Thank you very much for the reply. I never upgraded my system across major release, so I have not any experience about this process.
Quote:
Originally Posted by Lowell View Post
It's really one management system, with two different ways to install the applications. Once installed, there is no difference between programs you installed from packages as opposed to those you built from source.
Yes, you are right, the package is compiled from the ports by developers instead terminal users, naturally they are same. Maybe we should say the package is subsystem.
__________________
Just be yourself.
Reply With Quote
  #12  
Old December 26th, 2008, 23:02
rocketman rocketman is offline
Junior Member
 
Join Date: Nov 2008
Location: Huntsville, Alabama
Posts: 6
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Quote:
I'm just curious, cause after doing 'pkg_add -r xorg' for the 7.0-RELEASE, portaudit showed several packages with security flaws, one of them xserver. Is there a way to fix this if I do not want to recompile xorg?
I think if you run "X", it will always have vulnerabilities. But if your using your system as a desktop, you'll be OK. I would not suggest you install ANY "X" servers on a server system. Refer to 'man xhost' for more details.
Reply With Quote
  #13  
Old December 26th, 2008, 23:07
rocketman rocketman is offline
Junior Member
 
Join Date: Nov 2008
Location: Huntsville, Alabama
Posts: 6
Thanks: 2
Thanked 0 Times in 0 Posts
Default

I forgot to explain clearly. Any "X" means running "X" on any operating system: Linux, *BSD, MacOS X, DECwindows and there are several "X" servers for Win32.
Reply With Quote
  #14  
Old December 27th, 2008, 14:45
Lowell's Avatar
Lowell Lowell is offline
Junior Member
 
Join Date: Nov 2008
Location: Boston area, USA
Posts: 94
Thanks: 0
Thanked 18 Times in 16 Posts
Default

Quote:
Originally Posted by rocketman View Post
I think if you run "X", it will always have vulnerabilities. But if your using your system as a desktop, you'll be OK. I would not suggest you install ANY "X" servers on a server system. Refer to 'man xhost' for more details.
X is always dangerous, because it requires direct access to memory. However, there are no known vulnerabilities at this time if you are running x.org from the most up-to-date ports.
__________________
One of the best things about FreeBSD is its documentation.
Your question may already be answered in the FAQ...
Reply With Quote
  #15  
Old December 28th, 2008, 03:45
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

X is listening by default on port 6000 and runs as a root. There is no such thing as safe X server. There is some work in OpenGL (better known for X accelerated server and 3D rendering drivers) which might enable us in the distant future to run X window system safely i.e as the normal user. In the mean time I would fire you if I saw you running X on my servers
Reply With Quote
  #16  
Old December 28th, 2008, 20:36
Djn Djn is offline
Member
 
Join Date: Nov 2008
Location: Horten, Norway
Posts: 392
Thanks: 3
Thanked 62 Times in 53 Posts
Default

The "listening"-part can be turned off, though.
Reply With Quote
  #17  
Old December 30th, 2008, 15:29
edogawaconan's Avatar
edogawaconan edogawaconan is offline
Junior Member
 
Join Date: Nov 2008
Posts: 12
Thanks: 0
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by cdiem View Post
You were right actually; I had to 'pkg_delete -a' after pointing to stable, because several packages did not upgrade with 'portupgrade -varRPP'. I did 'pkg_add -r xorg' for 7-STABLE after deleting it all, which again had some problems with dependencies..I guess I will just wait for the packages from 7.1-release (which seems to be coming soon).
How about -f?
Also shouldn't there will be problem if required package(s) not available in binary form with -PP option?
Reply With Quote
  #18  
Old January 19th, 2009, 21:07
fleshm fleshm is offline
Junior Member
 
Join Date: Jan 2009
Location: Rzeszow/Poland
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hey, btw i'd like to ask a similar question.

i've got my sup file configured that way;

Code:
  *default host=cvsup.FreeBSD.org
  *default base=/usr
  *default prefix=/usr
  *default release=cvs tag=RELENG_7_1_0_RELEASE
  *default delete use-rel-suffix
  *default compress
  ports-all
  doc-all
and when i type

cvsup supfile it makes no port tree. in the handbook i've found that tree is created when tag is set to "tag=.". i want to stay with stable tree of 7.1 FreeBSD, so do i need to change every time tag to "." when i want to upgrade the port tree? i don't understand one thing. assuming i've downloaded the tree and i want to install some program. so i type

cd /usr/portage/[category]/[prog]
make install clean

from what freebsd release the program will be installed from? i bet freebsd-current. so what do i have to do when i want to install stable version?. i've found something in /var/ directory such as cvs_[xx]_RELENG_7_1_0_RELEASE. is this someway related to the release of the program i want to install? the same for portupgrade? how the heck the program knows the release ? i read "ports" part of handbook couple times and still don't get it. could someone explain please? thanks in advance


cheers
__________________
AMD X2 4200+, M2Ne nf570 ultra, 5GB DDR2, 7600GT
Reply With Quote
  #19  
Old January 19th, 2009, 22:55
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

the supfile you have posted is for the src/ tree. You need a ports-supfile in order to update your ports tree.

However a faster option is to use portsnap(8) utility to synchronize your ports tree...
__________________
Looking for administrator? http://www.syscare.sk
Reply With Quote
  #20  
Old January 20th, 2009, 12:44
tangram's Avatar
tangram tangram is offline
Member
 
Join Date: Nov 2008
Location: Portugal
Posts: 524
Thanks: 13
Thanked 65 Times in 56 Posts
Default

Do take notice that only source code collection has releases or branches.

By adding tag=. to the end of the collection name, you just tell csup to fetch the latest version of this collection.

So a supfile to pull ports should contain
Code:
ports-all tag=.
Same for docs
Code:
doc-all tag=.
Reply With Quote
  #21  
Old January 21st, 2009, 09:48
fleshm fleshm is offline
Junior Member
 
Join Date: Jan 2009
Location: Rzeszow/Poland
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank You for the answer
__________________
AMD X2 4200+, M2Ne nf570 ultra, 5GB DDR2, 7600GT
Reply With Quote
  #22  
Old January 21st, 2009, 10:25
tangram's Avatar
tangram tangram is offline
Member
 
Join Date: Nov 2008
Location: Portugal
Posts: 524
Thanks: 13
Thanked 65 Times in 56 Posts
Default

Glad we've helped. You ever feel to thank someone just push the bottom right "Thanks" button. No need to write a thanks you post
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
[Solved] is mod_fcgid stable for production server? cuongvt Web & Network Services 3 December 13th, 2008 22:41
6.4 Release - Bug Already - Didn't Anyone Test It? ter2007 Installing & Upgrading 23 December 7th, 2008 21:03
FreeBSD 6.4-RELEASE Available admin News & Announcements 0 November 28th, 2008 18:40
Problem booting 7 Stable francach Installing & Upgrading 3 November 25th, 2008 19:45
ipfw nat in 7.0-stable raVen Firewalls 1 November 18th, 2008 04:57


All times are GMT +1. The time now is 21:50.


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