Advertisement
caglartoklu

Yum Reference

Jun 14th, 2011
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.56 KB | None | 0 0
  1. # A reference to Yum, Yellowdog Updater, Modified
  2. # http://caglartoklu.blogspot.com
  3.  
  4. # Yum is a command line package manager for
  5. # RPM-compatible Linux operating systems.
  6.  
  7. Note that these commands requires root privileges.
  8.  
  9. # _____ Updates
  10.  
  11. # Check for availability package updates.
  12. yum check-update
  13.  
  14. # Update all installed packages.
  15. yum update
  16.  
  17. # Update a specific package.
  18. yum update package_name
  19. # Example:
  20. yum update mc
  21.  
  22.  
  23.  
  24. # _____ Searching and finding about what to install
  25.  
  26. # List the depencies of a package.
  27. yum deplist package_name
  28. # Example:
  29. yum deplist emacs
  30.  
  31. # Search a string in the metadata of packages.
  32. # This metadata includes: name, summary,
  33. # description, url.
  34. yum search ri
  35.  
  36. # Let's say you want the command 'ri' but
  37. # do not know which package is providing it. Type:
  38. yum provides ri
  39. # and you will see that 'ruby-ri-1.8.7.299....'
  40. # package os providing it.
  41.  
  42. # Information about a package.
  43. # Note that the package does not have to be
  44. # installed on your system, it will display
  45. # the information anyway.
  46. yum info package_name
  47. # Example:
  48. yum info mc
  49.  
  50. # Install a package or packages.
  51. yum install package_name
  52. yum install package_name1 package_name2
  53. # Example: yum install mc
  54.  
  55. # List the packages.
  56. yum list all
  57. yum list available
  58. yum list updates
  59. yum list installed
  60. yum list extra
  61. yum list obsoletes
  62. yum list recent
  63.  
  64.  
  65.  
  66. # _____ Installing and removing packages
  67.  
  68. # Remove a package or packages from your system.
  69. yum remove package_name
  70. yum remove package_name1 package_name2
  71. # erase command can also be used.
  72. yum erase package_name
  73. yum erase package_name1 package_name2
  74.  
  75. # Install a package or packages.
  76. yum install package_name1 package_name2
  77. # Example:
  78. yum install mc emacs
  79.  
  80. # You can also install a package for a specific
  81. # architecture like this:
  82. yum install package_name.architecture
  83. # See 'Specifying package names' in this document.
  84. # Architecture can be x86_64 or i386.
  85. # Example:
  86. yum install mc.x86_64
  87.  
  88. # Install a local RPM.
  89. yum localinstall package_name
  90.  
  91. # Update the distro using the RPMs saved locally.
  92. # cd to the directory you saved your rpms, and type:
  93. yum localupdate *.rpm
  94.  
  95.  
  96.  
  97. # _____ Downloading packages
  98.  
  99. # Download a package (current directory by default)
  100. yumdownloader package_name
  101. # If you do not have the yumdownloader,
  102. # install yum-utils using:
  103. yum install yum-utils
  104.  
  105.  
  106.  
  107. # _____ Groups
  108.  
  109. # See the list of groups installed:
  110. yum grouplist
  111. # This command will first list the installed groups,
  112. # then the available ones.
  113.  
  114. # After seeing the list, see the information about.
  115. # about a group. If the group name includes a space,
  116. # enclose the group name with ' character.
  117. yum groupinfo group_name
  118. # Example:
  119. yum groupinfo 'FTP server'
  120.  
  121. # Install packages of a group. Note that default
  122. # and mandatory ones will be installed.
  123. yum groupinstall group_name
  124. # Example:
  125. yum groupinstall 'FTP server'
  126.  
  127. # Update packages of a group.
  128. yum groupupdate group_name
  129. # Example:
  130. yum groupupdate 'FTP server'
  131.  
  132. # Remove all packages of a group.
  133. yum groupremove group_name
  134. # Example:
  135. yum groupremove 'FTP server'
  136.  
  137.  
  138.  
  139. # _____ Specifying package names
  140.  
  141. # A package can be referred to for install, update,
  142. # list, remove etc with any of the following:
  143. name
  144. name.arch
  145. name-ver
  146. name-ver-rel
  147. name-ver-rel.arch
  148. name-epoch:ver-rel.arch
  149. epoch:name-ver-rel.arch
  150.  
  151.  
  152. # _____ Shell
  153.  
  154. # To start the interactive shell, type:
  155. yum shell
  156.  
  157.  
  158. # _____ References
  159.  
  160. http://www.linuxcommand.org/man_pages/yum8.html
  161. http://yum.baseurl.org/
  162. http://en.wikipedia.org/wiki/Yellowdog_Updater,_Modified
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement