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

How to add custom repository URL for apt? #396

Open
Sunderland93 opened this issue Feb 5, 2023 · 3 comments
Open

How to add custom repository URL for apt? #396

Sunderland93 opened this issue Feb 5, 2023 · 3 comments

Comments

@Sunderland93
Copy link

Hello. Сould you advise me how can add custom Debian repo in recipe? For example, I want to use my repo on OBS (Open Build Service), which is looks like http://download.opensuse.org/repositories/home:/Sunderland93:/repo

@stephenstech-ca
Copy link

Is there any update regarding this? This would be very useful.

@obbardc
Copy link
Member

obbardc commented Jan 8, 2024

You can add custom apt repository by modifying files under /etc/apt e.g.:

  - action: run
    description: Add custom apt sources
    command: echo "deb http://site.example.com/debian distribution component1 component2 component3" >> ${ROOTDIR}/etc/apt/sources.list

You can also use overlay actions to add new files into e.g. /etc/apt/sources.list.d as appropriate. Hope that helps.

@stephenstech-ca
Copy link

Thanks Christopher! That's very helpful.

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

3 participants