Rootmanual:Repository: Skillnad mellan sidversioner

Från Lysators datorhandbok, den ultimata referensen.
Hoppa till navigering Hoppa till sök
Ingen redigeringssammanfattning
Ingen redigeringssammanfattning
Rad 1: Rad 1:
== Adding packages to the repository ==
== Adding packages to the repository ==
# Connecto to [[Repomaster]] and transfer the .deb file to any directory.


=== For deb-systems ===
=== For deb-based systems ===
# Copy the .deb package file to <code>/root/</code> on [[repomaster]].
# Cd to the root directory of the dist you want to add a package for inside the repository (e.g for ubuntu /srv/repos/ubuntu)
# Run:
# Run: reprepro includedeb ''<osrelease>'' ''<debfile>'' (osrelease is the name of the relase, e.g trusty for ubuntu 14.04 or wheezy for debian 7)
#* For Debian: <code>reprepro includedeb -Vb /src/repos/debian OS-RELEASE DEB-FILE</code>, where OS-RELEASE is the name of the release, e.g <code>wheezy</code> for Debian 7.
## Enter the gpg-password to sign the package
#* For Ubuntu: <code>reprepro includedeb -Vb /src/repos/ubuntu OS-RELEASE DEB-FILE</code>, where OS-RELEASE is the name of the release, e.g <code>trusty</code> for Ubuntu 14.04.
# If there are 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.
# Enter the GPG password to sign the package.
# 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 RedHat family ===
=== For the Red Hat family ===


# Place your rpm in /srv/repos/{CentOS,RedHat}/{7,8,whatever}/$arch/
# Place your RPM in:
# Run <code>createrepo</code> on that directory.
#* Fedora: <code>/srv/repos/fedora/$os_version/$arch/</code>
#* RHEL and derivatives (Rocky, CentOS, Alma, etc.): <code>/srv/repos/el/$os_version/$arch/</code>
# Run <code>/usr/local/bin/lysator_update_yum_repos_cron</code>

Versionen från 3 september 2022 kl. 20.40

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 /src/repos/debian OS-RELEASE DEB-FILE, where OS-RELEASE is the name of the release, e.g wheezy for Debian 7.
    • For Ubuntu: reprepro includedeb -Vb /src/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