Rootmanual:Repository: Skillnad mellan sidversioner
Hoppa till navigering
Hoppa till sök
Baafen (diskussion | bidrag) |
Hugo (diskussion | bidrag) |
||
(6 mellanliggande sidversioner av 4 användare visas inte) | |||
Rad 1: | Rad 1: | ||
== Adding packages to the repository == |
== Adding packages to the repository == |
||
=== |
=== For deb-based systems === |
||
# Copy the .deb package file to <code>/root/</code> on [[repomaster]]. |
|||
Update me! |
|||
# Run: |
|||
#* For Debian: <code>reprepro includedeb -Vb /srv/repos/debian OS-RELEASE DEB-FILE</code>, where OS-RELEASE is the name of the release, e.g <code>bullseye</code> for Debian 12. |
|||
#* For Ubuntu: <code>reprepro includedeb -Vb /srv/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. |
|||
⚫ | |||
⚫ | |||
=== |
=== For the Red Hat family === |
||
# Connecto to [[Repomaster]] and transfear the .deb file to any directory. |
|||
# Place your RPM in: |
|||
# 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) |
|||
#* Fedora: <code>/srv/repos/fedora/$os_version/$arch/</code> |
|||
# Run: reprepro includedeb ''<osrelease>'' ''<debfile>'' (osrelease is the name of the relase, e.g trusty for ubuntu 14.04 or wheezy for debian 7) |
|||
#* 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> |
|||
⚫ |
Nuvarande version från 20 oktober 2023 kl. 12.33
Adding packages to the repository
For deb-based systems
- Copy the .deb package file to
/root/
on repomaster. - Run:
- For Debian:
reprepro includedeb -Vb /srv/repos/debian OS-RELEASE DEB-FILE
, where OS-RELEASE is the name of the release, e.gbullseye
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.gtrusty
for Ubuntu 14.04.
- For Debian:
- 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 the Red Hat family
- Place your RPM in:
- Fedora:
/srv/repos/fedora/$os_version/$arch/
- RHEL and derivatives (Rocky, CentOS, Alma, etc.):
/srv/repos/el/$os_version/$arch/
- Fedora:
- Run
/usr/local/bin/lysator_update_yum_repos_cron