-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The Saturday 2007-05-12 at 22:32 +0200, David Haller wrote:

> 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]"


Curious! Obviously, I didn't test it, I was just thinking aloud.


> It's much easier though to just use --setperms mode of rpm:
> 
>     rpm -a --setperms

Indeed! I knew there was a way, but I couldn't remember/find how.

I'm saving your email for possible eventual need ;-)

- -- 
Cheers,
       Carlos E. R.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Made with pgp4pine 1.76

iD8DBQFGRlGGtTMYHG2NR9URAkrtAJ95kSK3O0XAyrmFz1TznlNjd7d50QCggNxg
pJfFYbe/ikRlO1LPfg52TKA=
=TdBD
-----END PGP SIGNATURE-----

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to