Hello, On Fri, 11 May 2007, Carlos E. R. wrote: >Now, we have to get those "modes" into something we can use... Let me see: > >[EMAIL PROTECTED]:~> rpm -q -a --queryformat >"%{FILEMODES:octal}\t%{DIRNAMES}%{BASENAMES}\n" >40755 /usr >40755 /etc/udev >40755 /usr/share/latex2html >100644 /usr/share/susehelp/docserver/index.html.en
That shows only the first file of each package. You need to use a loop (using []) for the Arrayvariables of RPM: rpm -qa --queryformat "[%{FILEMODES:octal}\t%{FILENAMES}\n]" It's much easier though to just use --setperms mode of rpm: rpm -a --setperms HTH, -dnh -- 9: GUI Ein Hintergrundbild und 12 Xterms (Kristian Köhntopp) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]