Line 389: |
Line 389: |
| | | |
| To get a list of the file names in v8 either do (all file starting with the string 'perl'): | | To get a list of the file names in v8 either do (all file starting with the string 'perl'): |
− | rpm -qa --qf '%{NAME}\n' name=perl\*
| + | <syntaxhighlight lang="Bash"> |
− | (Thanks Shad !)
| + | rpm -qa --qf '%{NAME}\n' name=perl\* |
| + | </syntaxhighlight> |
| | | |
| or as per suggestion on the lists (All files containing the string 'perl') | | or as per suggestion on the lists (All files containing the string 'perl') |
− | rpm -qa | grep perl | sed -e 's/-[0-9].*//'
| + | <syntaxhighlight lang="Bash"> |
− | (Thanks Gordon !)
| + | rpm -qa | grep perl | sed -e 's/-[0-9].*//' |
| + | </syntaxhighlight> |
| | | |
| To get a alphabetically sorted list (which is easier to compare lists) add '|sort' to the commands above. | | To get a alphabetically sorted list (which is easier to compare lists) add '|sort' to the commands above. |
− | rpm -qa --qf '%{NAME}\n' name=perl\*|sort
| + | <syntaxhighlight lang="Bash"> |
− | rpm -qa | grep perl | sed -e 's/-[0-9].*//'|sort
| + | rpm -qa --qf '%{NAME}\n' name=perl\*|sort |
| + | rpm -qa | grep perl | sed -e 's/-[0-9].*//'|sort |
| + | </syntaxhighlight> |
| | | |
| To export the list to a plain text file you could do: | | To export the list to a plain text file you could do: |
− | rpm -qa | grep perl | sed -e 's/-[0-9].*//'|sort > perl-list.txt
| + | <syntaxhighlight lang="Bash"> |
− | (Thanks HF !)
| + | rpm -qa | grep perl | sed -e 's/-[0-9].*//'|sort > perl-list.txt |
| + | </syntaxhighlight> |
| | | |
| {{Note box|Which command will be the de facto standard to use so we are all talking about the same list??}} | | {{Note box|Which command will be the de facto standard to use so we are all talking about the same list??}} |