[LUNA] more pkg questions ....

Bob Nance bob.nance at novationsys.com
Wed Sep 3 15:06:25 CDT 2014


pkg update will update the database that it uses.

To upgrade packages, I know you can ask to update the individual package:

	pkg upgrade foo

There are so many version of pkg out there, you might see if “pkg -l” will give you a specific list of commands. Also, man pages MIGHT show you a sample of your version’s “upgrade all” command. I am pretty sure that pkg’s inline help will give you some insight, too:

	pkg help upgrade

If “help” shows up in the output of “pkg -l”

I don’t have a BSD machine in front of me, so this is all off the top of my head. I seem to recall having to tell one version of pkg “yes” to allow it to upgrade packages and dependencies:

	pkg upgrade foo -y

Maybe try

	pkg upgrade -y 

Post back when you get it to work!


-Bob


---
  Bob Nance
  Novation Systems
  bob.nance at novationsys.com
  256-534-4620

On Sep 1, 2014, at 10:21 AM, William A. Mahaffey III <wam at HiWAAY.net> wrote:

> 
> 
> Well, I am 100% noob to FreeBSD, so I'm in the dark .... I thought the 2nd 'pkg version' command showed which of my installed pkg's had updates available, I got that from another list .... I then thought either of the next 2 pkg commands would do the upgrade ....
> 
> 
> On 09/01/14 09:51, Branden Harper wrote:
>> I'm not too familiar with the new pkg system since it merged with the other
>> ports utilities, but I think it's telling you there is a new version in the
>> ports index.  That doesn't necessarily mean that there is a new binary.
>> On Sep 1, 2014 8:16 AM, "William A. Mahaffey III" <wam at hiwaay.net> wrote:
>> 
>>> 
>>> .... This A.M. I tried to update my 9.3 system:
>>> 
>>> 
>>> [root at kabini1, /etc, 7:57:42am] 513 %  pkg version -vRL=
>>> Updating FreeBSD repository catalogue...
>>> FreeBSD repository is up-to-date.
>>> All repositories are up-to-date.
>>> db46-4.6.21.4                      ?   orphaned: databases/db46
>>> linux-f10-expat-2.0.1              ?   orphaned: textproc/linux-f10-expat
>>> linux-f10-fontconfig-2.6.0         ?   orphaned:
>>> x11-fonts/linux-f10-fontconfig
>>> linux-f10-xorg-libs-7.4_1          ?   orphaned: x11/linux-f10-xorg-libs
>>> opera-linuxplugins-12.16           ?   orphaned: www/opera-linuxplugins
>>> [root at kabini1, /etc, 7:59:17am] 514 %  pkg version -vIL=
>>> curl-7.37.1_2                      <   needs updating (index has 7.37.1_3)
>>> dri-7.6.1_4,2                      <   needs updating (index has 9.1.7_4,2)
>>> gtk2-2.24.22_3                     <   needs updating (index has 2.24.22_4)
>>> libGL-7.6.1_4                      <   needs updating (index has 9.1.7_1)
>>> libdrm-2.4.17_1,1                  <   needs updating (index has 2.4.52,1)
>>> libyaml-0.1.6                      <   needs updating (index has 0.1.6_1)
>>> pango-1.34.1_6                     <   needs updating (index has 1.34.1_7)
>>> portmaster-3.17.6                  <   needs updating (index has 3.17.7)
>>> readline-6.3.6_1                   <   needs updating (index has 6.3.8)
>>> xf86-video-intel-2.7.1_8           <   needs updating (index has 2.21.15_3)
>>> xorg-server-1.7.7_13,1             <   needs updating (index has
>>> 1.12.4_8,1)
>>> [root at kabini1, /etc, 7:59:39am] 515 %  pkg audit
>>> linux-f10-expat-2.0.1 is vulnerable:
>>> expat2 -- Parser crash with specially formatted UTF-8 sequences
>>> CVE: CVE-2009-3720
>>> WWW: http://portaudit.FreeBSD.org/5f030587-e39a-11de-881e-
>>> 001aa0166822.html
>>> 
>>> 1 problem(s) in the installed packages found.
>>> [root at kabini1, /etc, 8:04:50am] 516 %  pkg -N
>>> pkg: 468 packages installed
>>> [root at kabini1, /etc, 8:08:15am] 517 %  pkg upgrade
>>> Updating FreeBSD repository catalogue...
>>> FreeBSD repository is up-to-date.
>>> All repositories are up-to-date.
>>> Checking for upgrades (256 candidates): 100%
>>> Checking integrity... done (0 conflicting)
>>> Your packages are up to date.
>>> [root at kabini1, /etc, 8:09:34am] 518 %  pkg update
>>> Updating FreeBSD repository catalogue...
>>> FreeBSD repository is up-to-date.
>>> All repositories are up-to-date.
>>> [root at kabini1, /etc, 8:09:52am] 519 %
>>> 
>>> 
>>> i.e. I (think I) told pkg to upgrade whatever needed upgrading, & it did
>>> nothing, even though it seems to list a few pkg's needing upgrading ....
>>> more noob pilot-error, I'm sure, but any help appreciated :-/ .... TIA ....
>>> 
>>> 
>>> --
>>> 
>>>         William A. Mahaffey III
>>> 
>>>  ----------------------------------------------------------------------
>>> 
>>>         "The M1 Garand is without doubt the finest implement of war
>>>          ever devised by man."
>>>                            -- Gen. George S. Patton Jr.
>>> 
>>> _______________________________________________
>>> LUNA mailing list
>>> LUNA at lunagroup.us
>>> http://lunagroup.us/mailman/listinfo/luna
>>> 
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL: <http://lunagroup.us/pipermail/luna/attachments/20140901/c73217fb/attachment.html>
>> _______________________________________________
>> LUNA mailing list
>> LUNA at lunagroup.us
>> http://lunagroup.us/mailman/listinfo/luna
>> 
> 
> -- 
> 
> 	William A. Mahaffey III
> 
> ----------------------------------------------------------------------
> 
> 	"The M1 Garand is without doubt the finest implement of war
> 	 ever devised by man."
>                           -- Gen. George S. Patton Jr.
> 
> _______________________________________________
> LUNA mailing list
> LUNA at lunagroup.us
> http://lunagroup.us/mailman/listinfo/luna



More information about the LUNA mailing list