Advertisement
flycat

RPM options

May 21st, 2013
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.37 KB | None | 0 0
  1. # list files in RPM package
  2. rpm -qlp /path/to/file.rpm
  3. rpm -q -filesbypkg -p /path/to/file.rpm
  4.  
  5. # list installed packages
  6. rpm -qa
  7.  
  8. # list files in installed package
  9. rpm -ql package
  10.  
  11. # find package by file
  12. rpm -qf /sbin/rcportmap
  13.  
  14. # reinstall package
  15. rpm -iv --replacepkgs <packagefile>
  16.  
  17. # rpmbuild
  18. rpmbuild -bb file.spec
  19. rpmbuild -tb /usr/src/ixgbe-4.2.3.tar.gz
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement