Skillnad mellan versioner av "Rootmanual:Repository"
Hoppa till navigering
Hoppa till sök
Sebth (diskussion | bidrag) m (Stavfel) |
Hugo (diskussion | bidrag) |
||
(2 mellanliggande sidversioner av samma användare visas inte) | |||
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. |
# Connecto to [[Repomaster]] and transfer the .deb file to any directory. |
||
+ | |||
+ | === For deb-systems === |
||
# 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) |
# 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: reprepro includedeb ''<osrelease>'' ''<debfile>'' (osrelease is the name of the relase, e.g trusty for ubuntu 14.04 or wheezy for debian 7) |
# Run: reprepro includedeb ''<osrelease>'' ''<debfile>'' (osrelease is the name of the relase, e.g trusty for ubuntu 14.04 or wheezy for debian 7) |
||
## Enter the gpg-password to sign the package |
## Enter the gpg-password to sign the package |
||
# 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. |
# 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. |
||
+ | |||
+ | === For RedHat family === |
||
+ | |||
+ | # Place your rpm in /srv/repos/{CentOS,RedHat}/{7,8,whatever}/$arch/ |
||
+ | # Run <code>createrepo</code> on that directory. |
Versionen från 24 oktober 2021 kl. 18.47
Adding packages to the repository
- Connecto to Repomaster and transfer the .deb file to any directory.
For deb-systems
- 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: reprepro includedeb <osrelease> <debfile> (osrelease is the name of the relase, e.g trusty for ubuntu 14.04 or wheezy for debian 7)
- Enter the gpg-password to sign the package
- 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.
For RedHat family
- Place your rpm in /srv/repos/{CentOS,RedHat}/{7,8,whatever}/$arch/
- Run
createrepo
on that directory.