Re: [CentOS] how to find out the number of updates for a system

2019-05-22 Thread mark
Chris Adams wrote: > Once upon a time, mark said: > >> Ralf Prengel wrote: >> >>> Hallo, >>> I need the information how many updates are available for a system. >>> What is the best way to find it out in a one line bash script. >>> >>> >> yum check-update, perhaps? > > Note that "yum check-update"

Re: [CentOS] how to find out the number of updates for a system

2019-05-22 Thread Nux!
w.nux.ro - Original Message - > From: "SternData" > To: "CentOS mailing list" > Sent: Wednesday, 22 May, 2019 16:03:39 > Subject: Re: [CentOS] how to find out the number of updates for a system > maybe > yum -q check-update | wc -l > > On 5/22/19

Re: [CentOS] how to find out the number of updates for a system

2019-05-22 Thread SternData
maybe yum -q check-update | wc -l On 5/22/19 8:42 AM, Ralf Prengel wrote: > Hallo, > I need the information how many updates are available for a system. > What is the best way to find it out in a one line bash script. > > Von meinem iPad gesendet > __

Re: [CentOS] how to find out the number of updates for a system

2019-05-22 Thread Chris Adams
Once upon a time, John Pierce said: > otoh, its pretty rare that an update has a new dependency...if the > package is installed, its existing dependencies are also installed, and if > they have updates, check-update would show them all, would it not? It's not as rare as you might think, espec

Re: [CentOS] how to find out the number of updates for a system

2019-05-22 Thread John Pierce
On Wed, May 22, 2019 at 7:49 AM Chris Adams wrote: > Once upon a time, mark said: > > Ralf Prengel wrote: > > > Hallo, > > > I need the information how many updates are available for a system. > > > What is the best way to find it out in a one line bash script. > > > > > yum check-update, perhap

Re: [CentOS] how to find out the number of updates for a system

2019-05-22 Thread Nux!
, 2019 15:48:00 > Subject: Re: [CentOS] how to find out the number of updates for a system > yum check-updates 2>/dev/null|grep -A1000 "^$"|grep -vc "^$" > > -- > Sent from the Delta quadrant using Borg technology! > > Nux! > www.nux.ro > >

Re: [CentOS] how to find out the number of updates for a system

2019-05-22 Thread Chris Adams
Once upon a time, mark said: > Ralf Prengel wrote: > > Hallo, > > I need the information how many updates are available for a system. > > What is the best way to find it out in a one line bash script. > > > yum check-update, perhaps? Note that "yum check-update" or "yum list updates" won't tell y

Re: [CentOS] how to find out the number of updates for a system

2019-05-22 Thread Nux!
yum check-updates 2>/dev/null|grep -A1000 "^$"|grep -vc "^$" -- Sent from the Delta quadrant using Borg technology! Nux! www.nux.ro - Original Message - > From: "Ralf Prengel" > To: "CentOS mailing list" > Sent: Wednesday, 22 May, 2

Re: [CentOS] how to find out the number of updates for a system

2019-05-22 Thread Steffen Kröger
Hey Mark, one quick and dirty possibility: a=`yum check-updates | awk '{ print $2 }' |grep -v ":" |grep -v mirror |wc -l` ; echo $(($a - 1)) Best regards Steffen ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/cent

Re: [CentOS] how to find out the number of updates for a system

2019-05-22 Thread mark
Ralf Prengel wrote: > Hallo, > I need the information how many updates are available for a system. > What is the best way to find it out in a one line bash script. > yum check-update, perhaps? mark ___ CentOS mailing list CentOS@centos.org https:

[CentOS] how to find out the number of updates for a system

2019-05-22 Thread Ralf Prengel
Hallo, I need the information how many updates are available for a system. What is the best way to find it out in a one line bash script. Von meinem iPad gesendet ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos