DEV Community

Cover image for NEXUS OSS Hosted Repository Oluşturma ve Paket Yükleme
Doğukan Eren for Açıklab

Posted on

2

NEXUS OSS Hosted Repository Oluşturma ve Paket Yükleme

Nexus OSS kurulumunu gerçekleştirdiğimiz yazımıza buradan, apt proxy üzerinden Repository oluşturduğumuz yazımıza ise buradan erişebilirsiniz.

Bu yazımızda ise kendimiz paketleri host ettiğimiz ve yayınladığınız hosted repomuzu oluşturacağız.

Arayüz İşlemleri

İlk olarak Nexus arayüzüne yetkili kullanıcı ile giriş yapıyoruz.

Ayarlar -> Repository -> Repositories sayfasına giryoruz.

Image description

Create Repository butonuna basıyoruz ve açılan sayfada apt (hosted) seçeneğini seçiyoruz.

Not: rpm için yum (hosted) seçebilirsiniz

Image description

Açılan sayfada repo sunucumuzun ismini, sürümünü, tutulacak depolama alanını, SSL için gerekli olan sertifika key ve phrase bilgisini belirleyebiliriz

Image description

Key ve Phrase oluşturma

Key oluşturma işlemini gpg paketi üzerinden yapabiliriz. Paketi indirelim.

apt update
apt install gpg
Enter fullscreen mode Exit fullscreen mode

GPG key üretelim

gpg --gen-key
Enter fullscreen mode Exit fullscreen mode

Bize sorulan alanları (Realm name ve Phrase alanlarını doldurmamız yeterli) istediğimiz şekilde dolduralım.

public and secret key created and signed.

pub   rsa3072 2023-08-02 [SC] [expires: 2025-08-01]
      2349321.......yourkey..........CFBFD9
uid                      <youruuid>
sub   rsa3072 2023-08-02 [E] [expires: 2025-08-01]
Enter fullscreen mode Exit fullscreen mode

İşlem sonucunda üretilen key kullanılarak public ve private gpg key üretme işlemlerini gerçekleştirebiliriz.

YUkraıdaki sonucu kaybeder iseniz aşağıdaki komut ile tekrardan listeleyebilirsiniz.

gpg --list-keys
Enter fullscreen mode Exit fullscreen mode

Public ve private keyleri üretme işlemlerini de aşağıdaki komutlar ile gerçekleştirebiliriz.

gpg --armor --output public.gpg.key --export <your gpg key Id>
gpg --armor --output private.gpg.key --export-secret-key <your gpg key Id>
Enter fullscreen mode Exit fullscreen mode

Üretilen private.gpg.key dosaysının içeriğini APT Settings altındaki Signing Keys alanına yapıştırardıktan ve arayüzdeki diğer ayarlarımızı bir önceki maddedeki gibi ayarladıktan sonra

Image description
sol alt köşede bulunan Create repository butonuna basarak repomuzu oluşturabiliriz.

Sonrasında Settings -> Repository altında oluşturmuş olduğumuz repomuzun copy butonuna basarak repomuzun urle ulaşabiliriz.

Tarayıcıda arattığımız zaman da aşağıdaki gibi listeleyebilriz

Image description

Do your career a big favor. Join DEV. (The website you're on right now)

It takes one minute, it's free, and is worth it for your career.

Get started

Community matters

Top comments (0)

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

👋 Kindness is contagious

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay