[CentOS] determining what depends on a rpm
Gordon Messmer
gordon.messmer at gmail.comSat Dec 15 23:07:36 UTC 2018
- Previous message: [CentOS] determining what depends on a rpm
- Next message: [CentOS] determining what depends on a rpm
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 12/15/18 1:05 PM, Frank Cox wrote: > Ultimately it would be very useful to have some kind of a tool that would generate a report from the rpms installed on a system and tell you exactly what depends on what else. Among other things you could use that report to remove stuff that's not needed in any installation. While not a simple answer, this bash function will provide what you're looking for: whatrequires () { (rpm -q --qf '%{NAME}\n' "$1" ; rpm -q --provides "$1" ) | tr \\n \\0 | xargs -0 rpm -q --whatrequires ; }
- Previous message: [CentOS] determining what depends on a rpm
- Next message: [CentOS] determining what depends on a rpm
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list