Hi,
On 02/28/2012 04:58 PM, Craig White wrote:
> Object: to get a custom fact that lets me know the last time a Ubuntu system
> had run 'upgrade' (ie apt-get upgrade or aptitude [safe-|full-]upgrade)
>
> One-liner: (will probably still need some adaptation but so far, I am doing)
> tac /var/log/
Object: to get a custom fact that lets me know the last time a Ubuntu system
had run 'upgrade' (ie apt-get upgrade or aptitude [safe-|full-]upgrade)
One-liner: (will probably still need some adaptation but so far, I am doing)
tac /var/log/apt/history.log | \
awk '{if (substr($0,1,8)=="Upgrade:"