Advertisement
alunux

YUM

Oct 25th, 2014
433
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.57 KB | None | 0 0
  1. =====| CATATAN YUM 1 |======
  2.  
  3. Melihat fitur-fitur pada YUM
  4. # yum
  5. Loaded plugins: fastestmirror, langpacks, refresh-packagekit
  6. You need to give some command
  7. Usage: yum [options] COMMAND
  8.  
  9. List of Commands:
  10.  
  11. autoremove Remove leaf packages
  12. check Check for problems in the rpmdb
  13. check-update Check for available package updates
  14. clean Remove cached data
  15. deplist List a package's dependencies
  16. distribution-synchronization Synchronize installed packages to the latest available versions
  17. downgrade downgrade a package
  18. erase Remove a package or packages from your system
  19. fs Acts on the filesystem data of the host, mainly for removing docs/lanuages for minimal hosts.
  20. fssnapshot Creates filesystem snapshots, or lists/deletes current snapshots.
  21. groups Display, or use, the groups information
  22. help Display a helpful usage message
  23. history Display, or use, the transaction history
  24. info Display details about a package or group of packages
  25. install Install a package or packages on your system
  26. langavailable Check available languages
  27. langinfo List languages information
  28. langinstall Install appropriate language packs for a language
  29. langlist List installed languages
  30. langremove Remove installed language packs for a language
  31. list List a package or groups of packages
  32. load-transaction load a saved transaction from filename
  33. makecache Generate the metadata cache
  34. provides Find what package provides the given value
  35. reinstall reinstall a package
  36. repo-pkgs Treat a repo. as a group of packages, so we can install/remove all of them
  37. repolist Display the configured software repositories
  38. search Search package details for the given string
  39. shell Run an interactive yum shell
  40. swap Simple way to swap packages, instead of using shell
  41. update Update a package or packages on your system
  42. update-minimal Works like upgrade, but goes to the 'newest' package match which fixes a problem that affects your system
  43. updateinfo Acts on repository update information
  44. upgrade Update packages taking obsoletes into account
  45. version Display a version for the machine and/or available repos.
  46.  
  47. Update repo sekaligus paket-paket yang terpasang
  48. # yum update
  49.  
  50. Update paket tertentu saja
  51. # yum update namapaket
  52.  
  53. Update repo
  54. # yum updateinfo
  55.  
  56. Instalasi paket tertentu beserta dependensinya
  57. # yum install namapaket
  58.  
  59. Reinstal paket tertentu
  60. # yum reinstall namapaket
  61.  
  62. Hapus paket tertentu
  63. # yum remove
  64. untuk menghapus paket-paket yang tidak butuhkan lagi
  65. # yum autoremove
  66.  
  67. Melihat dependensi yang dibutuhkan oleh suatu paket. Dependensi
  68. # yum deplist namapaket
  69.  
  70. =====| CATATAN YUM 2 |======
  71.  
  72. # yum install wine
  73.  
  74. Muncul error:
  75. Error: Multilib version problems found. This often means that the root
  76. cause is something else and multilib version checking is just
  77. pointing out that there is a problem. Eg.:
  78.  
  79. 1. You have an upgrade for libusbx which is missing some
  80. dependency that another package requires. Yum is trying to
  81. solve this by installing an older version of libusbx of the
  82. different architecture. If you exclude the bad architecture
  83. yum will tell you what the root cause is (which package
  84. requires what). You can try redoing the upgrade with
  85. --exclude libusbx.otherarch ... this should give you an error
  86. message showing the root cause of the problem.
  87.  
  88. 2. You have multiple architectures of libusbx installed, but
  89. yum can only see an upgrade for one of those architectures.
  90. If you don't want/need both architectures anymore then you
  91. can remove the one with the missing update and everything
  92. will work.
  93.  
  94. 3. You have duplicate versions of libusbx installed already.
  95. You can use "yum check" to get yum show these errors.
  96.  
  97. ...you can also use --setopt=protected_multilib=false to remove
  98. this checking, however this is almost never the correct thing to
  99. do as something else is very likely to go wrong (often causing
  100. much more problems).
  101.  
  102. Paket yang bermasalah di sini adalah libusbx dan libvpx. Ini pertama kalinya saya bermasalah dengan hal seperti ini. Saya coba # yum autoremove kemudian # yum update, akan tetapi tetap saja tidak menyelesaikan masalah. Akhirnya saya mencoba perintah #yum untuk melihat menu-menu yang tersedia pada YUM.
  103.  
  104. Nah, saya tertarik dengan menu "distribution-synchronization". Menu ini berfungsi untuk melakukan sinkronisasi paket-paket yang dimiliki oleh Fedora ke server repo Fedora. Jadi, menu ini menjadikan isi Fedora yang kita miliki menjadi benar-benar Fedora (saya tidak tau mau bilang apa). Hasil setelah menjalankan #yum distribution-synchronization adalah:
  105.  
  106. Downgrade libusbx-1.0.19-1.fc20.x86_64 @updates
  107. Downgraded 1.0.19-100.rc2.fc20.x86_64 @fedora-chromium-stable
  108. Downgrade libvpx-1.3.0-4.fc20.x86_64 @updates
  109. Downgraded 1.3.0-100.git8f850d6.fc20.x86_64 @fedora-chromium-stable
  110. Downgrade libwebp-0.3.1-3.fc20.x86_64 @updates
  111. Downgraded 0.3.1-3.gitcc55790.fc20.x86_64 @fedora-chromium-stable
  112.  
  113. Ternyata adanya bentrok antara libusbx, libvpx, dan libwebp yang berada di repo fedora-chromium-stable dengan repo update. Akhirnya versi dari ketiga paket itu harus disesuaikan dengan versi yang ada di repo resmi fedora yaitu di repo updates. Instalasi wine menjadi lancar tanpa hambatan.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement