e07e [Solved] Checking for pitfalls before updating ports - 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 May 8th, 2012, 08:54
mariourk mariourk is offline
Member
 
Join Date: Nov 2011
Posts: 120
Thanks: 1
Thanked 0 Times in 0 Posts
Default Checking for pitfalls before updating ports

I understand it is adviced to check /usr/ports/UPDATING to see if any package needs special attention when updating it. The thing is, /usr/ports/UPDATING is basicly a huge textfile, with a lot of information. And humans (myself in particular ) are not your best choice to process huge piles of information. It's easy to miss something important.

I was wondering if there is an easier way to check this information. Maybe some tool that crawls through this file, compares it to the ports that need updating and only shows the relevant information?

Last edited by DutchDaemon; May 8th, 2012 at 23:13. Reason: Posted in the wrong forum: http://forums.freebsd.org/showthread.php?t=2756
Reply With Quote
  #2  
Old May 8th, 2012, 09:22
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,725
Thanks: 47
Thanked 2,023 Times in 1,862 Posts
Default

Quote:
Originally Posted by mariourk View Post
Maybe some tool that crawls through this file, compares it to the ports that need updating and only shows the relevant information?
pkg_updating(1)
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #3  
Old May 8th, 2012, 09:45
mariourk mariourk is offline
Member
 
Join Date: Nov 2011
Posts: 120
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Ah, thanks!

Is there any way to determine when the last updates were installed?

Does this command also show information about packages that are not installed? And thus is irrelevant information? . Or can I filter this somehow?

Last edited by DutchDaemon; May 8th, 2012 at 23:14.
Reply With Quote
  #4  
Old May 8th, 2012, 09:48
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,725
Thanks: 47
Thanked 2,023 Times in 1,862 Posts
Default

Quote:
Originally Posted by mariourk View Post
Is there any way to determine when the last updates were installed?
Not that I know.

Quote:
Does this command also show information about packages that are not installed? And thus is irrelevant information? . Or can I filter this somehow?
Quote:
The pkg_updating command scans the installed ports and show all UPDATING entries that affect one of the installed ports. Alternative a list of pkg-names could be passed.
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.

Last edited by DutchDaemon; May 8th, 2012 at 23:14.
Reply With Quote
  #5  
Old May 8th, 2012, 10:16
mariourk mariourk is offline
Member
 
Join Date: Nov 2011
Posts: 120
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Oops, I missed that description. See why I wanted the least possible amount of information from pkg_updating?

This seems straightforward enough though. Thanks for your feedback!

Last edited by DutchDaemon; May 8th, 2012 at 23:15.
Reply With Quote
  #6  
Old May 15th, 2012, 16:51
wblock@'s Avatar
wblock@ wblock@ is offline
Moderator
 
Join Date: Sep 2009
Location: Milky Way galaxy
Posts: 7,724
Thanks: 432
Thanked 1,762 Times in 1,459 Posts
Default

% ls -ltr /var/db/pkg | tail -n1
shows the latest changed package. It's not foolproof, but gives an idea.
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] What updates /usr/ports/UPDATING? drhowarddrfine Installing & Upgrading 7 March 6th, 2012 06:44
[Solved] /usr/ports/UPDATING Cb Installation and Maintenance of FreeBSD Ports or Packages 4 April 12th, 2011 16:28
Reading /usr/ports/UPDATING AngusBuchanan Installation and Maintenance of FreeBSD Ports or Packages 3 January 21st, 2011 01:53
[Solved] Updating: ports and packages nikolajg Installation and Maintenance of FreeBSD Ports or Packages 5 April 9th, 2010 13:38
updating ports and everything hirohitosan Installation and Maintenance of FreeBSD Ports or Packages 27 December 16th, 2008 19:33


All times are GMT +1. The time now is 09:45.


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