This is a discussion on I would like to compare all the names..... within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Hi All, I know, perhaps, that the next question is not really slack pertinent and it should be easy ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi All, I know, perhaps, that the next question is not really slack pertinent and it should be easy for you (but not for me.....). Since I would like to compare all the names of the files beginning from my / and the files listed in MANIFEST.bz2, whot is the bash command to create a file with all the dir/files ? I would like, at least, just only the dir&file (like /usr/X11R6/lib/X11/doc/README). Thank's for reply. Andrea |
| |||
| On Sat, 15 May 2004 22:20:16 GMT, dryphone <andsal@nospam.inwind.it> wrote: > Since I would like to compare all the names of the files > beginning from my / and the files listed in MANIFEST.bz2, Do you want to compare ownerships/permissions with those listed on your system with those in MANIFEST.bz2? If so, I've written a perl script that can do this: <http://www.mark.ukfsn.org/nix/slackware/comparepkg.txt> (You'll have bunzip2 the MANIFEST.bz2 file before use.) If you want to find 'orphan' files that aren't listed in MANIFEST.bz2, then perhaps this recent posting will help: <http://groups.google.co.uk/groups?selm=Pine.LNX.4.58.0405100918270.13182%40wo rker.huntbros.net> > who is the bash command to create a file with all the > dir/files ? As root: find / > /tmp/all-files.txt (This will take some time.) However, you may want to skip some directories like /home. man find has details on how you can make find do this. -- Mark Hill <usenet@mark.ukfsn.org> GPG KeyID: 4A3B58AC |
| |||
| -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Mark Hill said the following on 05/16/04 07:05: | On Sat, 15 May 2004 22:20:16 GMT, | dryphone <andsal@nospam.inwind.it> wrote: | | |>Since I would like to compare all the names of the files |>beginning from my / and the files listed in MANIFEST.bz2, | | | Do you want to compare ownerships/permissions with those listed on your | system with those in MANIFEST.bz2? If so, I've written a perl script | that can do this: | <http://www.mark.ukfsn.org/nix/slackware/comparepkg.txt> | (You'll have bunzip2 the MANIFEST.bz2 file before use.) | | If you want to find 'orphan' files that aren't listed in MANIFEST.bz2, | then perhaps this recent posting will help: | <http://groups.google.co.uk/groups?selm=Pine.LNX.4.58.0405100918270.13182%40wo rker.huntbros.net> | |>who is the bash command to create a file with all the |>dir/files ? | | | As root: | find / > /tmp/all-files.txt | (This will take some time.) | | However, you may want to skip some directories like /home. man find has | details on how you can make find do this. | To skip the directories, use with the -type f parameter which will only search for files, e.g. find / -type f > /tmp/all-files.txt - -- Best regards, Wong Kum Weng, Andrew +----------------------------------------------------------------------+ ~ Keep away from people who try to belittle your ambitions. Small people ~ always do that, but the really great ones make you feel that you too, ~ can become great. -- Mark Twain +----------------------------------------------------------------------+ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFAptP61bXyj+2X4JERAoFLAKCQpwehw+K4G+XCWuDOUU 8qNZkopwCfe+YW YwzGJTe9BMs6Dmcs57hK0P4= =g11L -----END PGP SIGNATURE----- |
| |||
| NOTE: This message was sent thru a mail2news gateway. No effort was made to verify the identity of the sender. -------------------------------------------------------- pgp trash troll delete Wong Kum Weng <jinrong@bigfoot.com> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > Mark Hill said the following on 05/16/04 07:05: > | On Sat, 15 May 2004 22:20:16 GMT, > | dryphone <andsal@nospam.inwind.it> wrote: > | > | > |>Since I would like to compare all the names of the files > |>beginning from my / and the files listed in MANIFEST.bz2, > | > | > | Do you want to compare ownerships/permissions with those listed on your > | system with those in MANIFEST.bz2? If so, I've written a perl script > | that can do this: > | <http://www.mark.ukfsn.org/nix/slackware/comparepkg.txt> > | (You'll have bunzip2 the MANIFEST.bz2 file before use.) > | > | If you want to find 'orphan' files that aren't listed in MANIFEST.bz2, > | then perhaps this recent posting will help: > | > <http://groups.google.co.uk/groups?selm=Pine.LNX.4.58.0405100918270.13182%40wo rker.huntbros.net> > | > |>who is the bash command to create a file with all the > |>dir/files ? > | > | > | As root: > | find / > /tmp/all-files.txt > | (This will take some time.) > | > | However, you may want to skip some directories like /home. man find has > | details on how you can make find do this. > | > To skip the directories, use with the -type f parameter which will only > search for files, e.g. > find / -type f > /tmp/all-files.txt > - -- > Best regards, > Wong Kum Weng, Andrew > +----------------------------------------------------------------------+ > ~ Keep away from people who try to belittle your ambitions. Small people > ~ always do that, but the really great ones make you feel that you too, > ~ can become great. > -- Mark Twain > +----------------------------------------------------------------------+ > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.4 (GNU/Linux) > iD8DBQFAptP61bXyj+2X4JERAoFLAKCQpwehw+K4G+XCWuDOUU 8qNZkopwCfe+YW > YwzGJTe9BMs6Dmcs57hK0P4= > =g11L > -----END PGP SIGNATURE----- |
| |||
| Wong Kum Weng wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Mark Hill said the following on 05/16/04 07:05: > | On Sat, 15 May 2004 22:20:16 GMT, > | dryphone <andsal@nospam.inwind.it> wrote: > | > | > |>Since I would like to compare all the names of the files > |>beginning from my / and the files listed in MANIFEST.bz2, > | > | > | Do you want to compare ownerships/permissions with those listed on your > | system with those in MANIFEST.bz2? If so, I've written a perl script > | that can do this: > | <http://www.mark.ukfsn.org/nix/slackware/comparepkg.txt> > | (You'll have bunzip2 the MANIFEST.bz2 file before use.) > | > | If you want to find 'orphan' files that aren't listed in MANIFEST.bz2, > | then perhaps this recent posting will help: > | > <http://groups.google.co.uk/groups?selm=Pine.LNX.4.58.0405100918270.13182%40wo rker.huntbros.net> > > | > |>who is the bash command to create a file with all the > |>dir/files ? > | > | > | As root: > | find / > /tmp/all-files.txt > | (This will take some time.) > | > | However, you may want to skip some directories like /home. man find has > | details on how you can make find do this. > | > > To skip the directories, use with the -type f parameter which will only > search for files, e.g. > > find / -type f > /tmp/all-files.txt > > - -- > > Best regards, > > Wong Kum Weng, Andrew > > +----------------------------------------------------------------------+ > > ~ Keep away from people who try to belittle your ambitions. Small people > ~ always do that, but the really great ones make you feel that you too, > ~ can become great. > -- Mark Twain > +----------------------------------------------------------------------+ > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.4 (GNU/Linux) > > iD8DBQFAptP61bXyj+2X4JERAoFLAKCQpwehw+K4G+XCWuDOUU 8qNZkopwCfe+YW > YwzGJTe9BMs6Dmcs57hK0P4= > =g11L > -----END PGP SIGNATURE----- Mark, Wong, I thank You very much for your help. Mark, I don't know if this can help you in MANIFEST: drwxr-xr-x root/root 0 2003-12-15 13:23:43 etc/cups/ and in the output: File Permissions: /etc/cups/ is 0775 but 0755 in MANIFEST <-------------------- Group Ownership: /etc/cups/ is gid 3 (sys) on system but gid 0 (root) in MANIFEST Regards |
| ||||
| On Sun, 16 May 2004 18:11:38 GMT, dryphone <andsal@nospam.inwind.it> wrote: > Mark, Wong, > I thank You very much for your help. No problem. > Mark, > I don't know if this can help you > > in MANIFEST: > drwxr-xr-x root/root 0 2003-12-15 13:23:43 etc/cups/ > > and in the output: > File Permissions: /etc/cups/ is 0775 but 0755 in MANIFEST Ok, this is saying the permissions of /etc/cups/ are 0775 on the system, but 0755 in the MANIFEST file. The same difference is found on my system. I'm not sure what causes it. (cups configuration?) > Group Ownership: /etc/cups/ is gid 3 (sys) on system but gid > 0 (root) in MANIFEST It's interesting that your /etc/cups is owned by the sys group. I found my /etc/cups to be with sys group ownerships also, but thought it was an error on my part. Hope you found the script useful. -- Mark Hill <usenet@mark.ukfsn.org> GPG KeyID: 4A3B58AC |