Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add apt "Label" to hosted apt repositories #22

Open
ross-skydio opened this issue Jan 3, 2022 · 0 comments
Open

Add apt "Label" to hosted apt repositories #22

ross-skydio opened this issue Jan 3, 2022 · 0 comments

Comments

@ross-skydio
Copy link

We have a number of "hosted" repositories that contain custom .deb packages that we host. It is pretty straight forward to set these up in Nexus; however, when you want to specify any apt preferences based on identifying labels of these repositories, we're unable to do so because the default properties of the hosted repository are pretty basic:

They contain the Archive, Codename, and Component. These properties are pretty generic and are a subset of almost all other public repositories. However, there are other properties such as Label that allow for more unique identification to be used. This is very helpful when trying to prioritize repositories within nexus (using apt_preferences).

In other words, I'd like to be able to set the properties so that when I run apt-cache policy I see the label property populated with a label added in the hosted repo settings in Nexus.

I tried doing this by using the full URL for the repository within our nexus setup (e.g. nexus.internal.com/repository/apt-custom-repo`) but that doesn't work since all are behind the same domain. Since we proxy all repositories (both hosted and proxy) through our nexus domain, we're unable to specify the repository by URL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant