[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Defaulting to i686 for the Debian i386 architecture

* Lars Wirzenius <liw@liw.fi>, 2015-10-06, 12:04:
sed -ne '/^flags\t/{s/\b\(fpu\|tsc\|cx8\|cmov\)\b/%/g;s/[^%]*//g;s/%%%%/i686 SUPPORTED/p}' /proc/cpuinfo
Or a more readable version:

[ $(lscpu | grep ^Flags: | grep -owE 'fpu|tsc|cx8|cmov' | wc -l) = 4 ] && echo i686 SUPPORTED

Phil's second one works for me, yours does not,

Oops. You need util-linux (>= 2.27). Previous versions of lscpu didn't output CPU flags.

Jakub Wilk

Reply to: