repository.rst 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. .. -*- coding: utf-8 -*-
  2. =====================
  3. Repository Operations
  4. =====================
  5. What is repository?
  6. -------------------
  7. With its simple definition, package repositories consist of binary and source packages. These repositories make \
  8. it easy to build dependency trees and manage packages. Repositories for inary are listed on our site. Let's \
  9. start with adding any of these repositories.
  10. How to add a repository?
  11. ------------------------
  12. .. code-block:: shell
  13. sh ~# inary ar try_repo https://master.dl.sourceforge.net/project/sulinos/SulinRepository/inary-index.xml
  14. Repository "try_repo" added to system.
  15. Updating package repository: "try_repo"
  16. Package database updated.
  17. How do I know which repository to add?
  18. --------------------------------------
  19. I said that the repositories are divided into two. Binary warehouses contain ready-made packages. If you are a \
  20. normal user, you can continue your life without using another warehouse, as we share on our site.
  21. Source repositories require build from scratch. I will explain later how to do it.
  22. How do I update repositories?
  23. -----------------------------
  24. As new packages are added, the package catalog of the warehouse is renewed. Following the changes from the \
  25. renewed package catalog is the most important job of a package manager. For this reason, we want the user to \
  26. do it manually. We don't have a command for this ...
  27. Just joke :smile:... The command is this:
  28. .. code-block:: shell
  29. sh ~# inary ur try_repo
  30. Updating package repository: "try_repo"
  31. Package database updated.
  32. If you need update all repositories same time.
  33. .. code-block:: shell
  34. sh ~# inary ur
  35. Updating package repository: "try_repo"
  36. Updating package repository: "source_repo"
  37. Updating package repository: "local_repo"
  38. Package database updated.
  39. How to list the repositories?
  40. -----------------------------
  41. .. code-block:: shell
  42. sh ~# inary lr
  43. try_repo [active]
  44. https://master.dl.sourceforge.net/project/sulinos/SulinRepository/inary-index.xml
  45. source_repo [inactive]
  46. https://gitlab.com/sulinos/repositories/SulinRepository/-/raw/master/inary-index.xml
  47. What can I do to fiddling repositories?
  48. ---------------------------------------
  49. In other package management systems, you are asked to download tons of data every time you update your \
  50. repositories. Sometimes the warehouse we have installed to add a package can be a lot of trouble. At this \
  51. stage, inary offers two options. Either you delete the repository forever (or until your pleasure re-adds), \
  52. or keep it in your system and deactive it. In this case, the deactive repo is not included in the package \
  53. lists as if it were removed from the system until you activate it or remove it. \
  54. That is, you can keep this repositories away from package management by preserving the commodity. \
  55. Sometimes the package management system does this automatically. As soon as repos that are incompatible \
  56. with your distro are added, they are deactive so preserving your system to broken and uncompitable packages.
  57. Disabling Repository
  58. ^^^^^^^^^^^^^^^^^^^^
  59. .. code-block:: shell
  60. sh ~# inary dr try_repo
  61. This command does not output, but you already know how to check the repository list: joy:
  62. .. code-block:: shell
  63. sh ~# inary lr
  64. try_repo [inactive]
  65. https://master.dl.sourceforge.net/project/sulinos/SulinRepository/inary-index.xml
  66. Removing Repository
  67. ^^^^^^^^^^^^^^^^^^^
  68. .. warning:: this process may be destructive for your repo list. Please not forget your repo link or back up it
  69. .. code-block:: shell
  70. sh ~# inary rr try_repo
  71. Repository "try_repo" removed from system.
  72. Enabling Repository
  73. ^^^^^^^^^^^^^^^^^^^^
  74. Let's say we needed a warehouse that was disable later, then it will disappear. That's when you'll have to get it back.
  75. .. note:: It will take long time. And you will wait without any output.
  76. .. code-block:: shell
  77. sh ~# inary er try_repo