DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 14th September 2010
da1 da1 is offline
Port Guard
 
Join Date: Feb 2009
Location: Berlin, DE
Posts: 28
Thanked 1 Time in 1 Post
Default how-to list all packages that need upgrading ?

Hello fellas,

on FreeBSD one would issue "pkg_version -L =" and would get a list of all packages that have newer version in the ports and are available for updating.

I know "pkg_add -u <pkg_name>" updates 1 package or if issues without a package name it updates everything, but is there a way to get a list of all packages that have updates available ?
Reply With Quote
  #2   (View Single Post)  
Old 14th September 2010
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,876
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by da1 View Post
...is there a way to get a list of all packages that have updates available ?
Look & experiment with pkg_info(8)'s "-e" switch. From the manpage:
Code:
     -e pkg-name
             This option allows you to test for the presence of another
             (perhaps prerequisite) package from a script.  If the package
             identified by pkg-name is currently installed, return 0,
             otherwise return 1.  In addition, the names of any package(s)
             found installed are printed to stdout unless turned off using the
             -q option.

             The given pkg-name is actually a package specification, as
             described in packages-specs(7).  For example, pkg_info -e
             'name->=1.3' will match versions 1.3 and later of the name
             package.

     -e pkg-path
             Another variant of this option that uses a package path instead.
             A package path is a location within the ports tree, as described
             in FULLPKGPATH in bsd.port.mk(5).  For example, pkg_info -e
             x11/kde/base3 will match any package that was compiled according
             to ${PORTSDIR}/x11/kde/base3.
Reply With Quote
  #3   (View Single Post)  
Old 14th September 2010
AxelBSD AxelBSD is offline
New User
 
Join Date: Jul 2008
Location: Paris, France
Posts: 3
Thanked 0 Times in 0 Posts
Default

EDIT : deleted because it was a FreeBSD solution using Portmaster, not for OpenBSD
Reply With Quote
  #4   (View Single Post)  
Old 14th September 2010
rocket357's Avatar
rocket357 rocket357 is offline
Real Name: Jonathon
Wannabe OpenBSD porter
 
Join Date: Jun 2010
Location: 127.0.0.1
Posts: 321
Thanked 9 Times in 9 Posts
Default

Quote:
Originally Posted by da1 View Post
is there a way to get a list of all packages that have updates available ?
pkg_add -su
Reply With Quote
  #5   (View Single Post)  
Old 14th September 2010
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,641
Thanked 214 Times in 189 Posts
Default

For those who use the ports tree, there is always /usr/ports/infrastructure/build/out-of-date.
Reply With Quote
  #6   (View Single Post)  
Old 14th September 2010
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

I don't believe there are stable packages being built yet, so, this isn't exactly an issue for the most part.

jggimi has the right idea, grab the ports.tar.gz tarball and update to OPENBSD_4_7 or your stable branch, and you'll get an idea what ports have been updated via the output (..use cvs -q) or after updating run the out-of-date script and manually build any updates relevant to your system.

I may be wrong about the available of stable packages though, haven't reconfirmed this yet.
Reply With Quote
  #7   (View Single Post)  
Old 26th October 2010
Noobification's Avatar
Noobification Noobification is offline
Real Name: William Yang
Noobification
 
Join Date: Oct 2010
Location: Inside my machine
Posts: 8
Thanked 0 Times in 0 Posts
Default Hi

Hello,

I am wondering how to update my system as well...

(I know it sounds stupid) can I just please make sure pkg_add -u updates my packages on system (not ports yet) entirely (as in no additional steps required except cleanup?)? as exactly described in the OpenBSD docs?
Reply With Quote
  #8   (View Single Post)  
Old 26th October 2010
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,876
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by Noobification View Post
I am wondering how to update my system as well...
It will be good for you to begin familiarizing yourself with the Upgrade Guide:

http://www.openbsd.org/faq/upgrade47.html

Note, the link above is for upgrading from OpenBSD 4.6 to 4.7. Once OpenBSD 4.8 is officially released in November, the project's Website will be updated with the OpenBSD 4.7 to 4.8 Upgrade Guide.
Quote:
...can I just please make sure pkg_add -u updates my packages on system (not ports yet)...
Two points need to be covered to answer this question:
  • Building any port results in packages -- the same packages which can be found on any mirror site for the dominant platforms. Packages for OpenBSD 4.8 will not be available until November.

    Because the resulting packages are the same whether you or the project builds them, there is little to no reason for users to build them locally.

    The best overview of OpenBSD's packages/ports system can be found in Section 15 of the official FAQ.
  • As for specifically upgrading installed packages, Mark Espie has put in a lot of work to simplify the process. "pkg_add -u <package-name>" should be sufficient to upgrade packages now.

    For bonus points, Espie's recent presentation on developing OpenBSD's package system is worthwhile reading:

    http://openbsd.org/papers/eurobsdcon...add/index.html
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
List of 4.7 packages? guitarscn OpenBSD Packages and Ports 5 23rd August 2010 05:37 PM
OpenBSD mailing list Mr-Biscuit Off-Topic 4 2nd May 2010 04:06 PM
I need a list of websites that my isp deny undercoverdaememon Off-Topic 5 14th April 2010 04:01 AM
How to get a list of volumes? PeterSteele Programming 12 17th July 2008 09:32 AM
Upgrading and rebuilding ALL packages/ports chill FreeBSD Ports and Packages 8 16th June 2008 04:55 AM


All times are GMT. The time now is 10:03 AM.


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