Rootmanual:Repository

Från Lysators datorhandbok, den ultimata referensen.
Version från den 20 oktober 2023 kl. 12.33 av Hugo (diskussion | bidrag) (→‎Adding packages to the repository)
(skillnad) ← Äldre version | Nuvarande version (skillnad) | Nyare version → (skillnad)
Hoppa till navigering Hoppa till sök

Adding packages to the repository

For deb-based systems

  1. Copy the .deb package file to /root/ on repomaster.
  2. Run:
    • For Debian: reprepro includedeb -Vb /srv/repos/debian OS-RELEASE DEB-FILE, where OS-RELEASE is the name of the release, e.g bullseye for Debian 12.
    • For Ubuntu: reprepro includedeb -Vb /srv/repos/ubuntu OS-RELEASE DEB-FILE, where OS-RELEASE is the name of the release, e.g trusty for Ubuntu 14.04.
  3. Enter the GPG password to sign the package.
  4. If there were no errors, the package is now available in the repository. To see the new package, update the list (e.g apt-get update) and the new package should be available.

For the Red Hat family

  1. Place your RPM in:
    • Fedora: /srv/repos/fedora/$os_version/$arch/
    • RHEL and derivatives (Rocky, CentOS, Alma, etc.): /srv/repos/el/$os_version/$arch/
  2. Run /usr/local/bin/lysator_update_yum_repos_cron