Or maybe a way to use existing cloud services like Google Drive or OneDrive or Dropbox for this purpose?

I just have a bunch of .deb files and I think this could be really useful. Plus I will be offloading some of my storage ๐Ÿ˜

all 17 comments

sorted by: hot top controversial new old
[โ€“] 6 points 2 years ago
[โ€“] 4 points 2 years ago

JFrog is probably overkill but what I use. Yes there are lighter weight ways but it's easy.

  • source
  • [โ€“] 4 points 2 years ago* (2 children)

    Use a standard Webserver like nginx and enable access protection with username + password. For that you can use your favorite web hoster.

    You can specify the credentials like this in sources.list format: deb https://user:password@your-server.tld

  • source
  • hideshow 4 child comments
  • @petrescatraian@libranet.de to add on to this, you can also use apt_auth.conf (man doc) to define the passwords for accessing your stuff. The repo has to be behind HTTP basic auth.

    So, the steps are:

    Anti Commercial-AI license

  • source
  • parent
  • [โ€“] [S] 1 point 2 years ago (1 child)

    Thanks. I was looking into self hosting as well. Do I need to also own a domain for this or can I point my system to the IP address only?

  • source
  • parent
  • hideshow 2 child comments
  • [โ€“] 3 points 2 years ago (1 child)

    This is something companies do, but I believe acess control is by firewall/VPN not the repo tools. As far as I can tell, if you can access the IP address of the URL assets you can get the assets. So making it private is a matter of setting up access to the server(s) not a configuration of the tools that manage the repository.

    I'd ask on a debian focused irc/chat room/ mailing list to find out more.

  • source
  • hideshow 2 child comments
  • [โ€“] 3 points 2 years ago (2 children)

    Hi. You have two main ways to achieve this: use an artifact store such as Pulp and https://github.com/pulp/pulp_deb plugin or basically do it yourself by creating the APT repo manually and delivering it over HTTP similar to https://linuxopsys.com/topics/create-your-own-repository-for-packages-on-debian#Step_4_Create_the_Required_Repository_Package_Meta_for_APT

    There is no magic. Creating Yum or APT repos boils down to having packages and their metadata in a structured format and making it consumable over HTTP. To get started, you can also inspect any upstream repo in your browser.

    Good luck. Feel free to report back if you have more specific questions.

  • source
  • hideshow 4 child comments
  • [โ€“] 1 point 2 years ago

    apt repositories are just http severs with some metadata generated.

    There are some services, like metioned jfrog and maybe nexus that will set it up for you with some additional tooling to aid in package releases.

    For a private use, a static file hosting + metadata is all you need.

    Here's instructions from Debian docs. It seems fairly straightforward on a cursory look through.

    https://wiki.debian.org/DebianRepository/Setup#Debian_Repository_Types

  • source
  • [โ€“] 1 point 2 years ago (1 child)

    Unsure if this is what you're looking for, but I've seen some FOSS projects use https://www.makedeb.org/ and https://openbuildservice.org/ to create public Debian repos.

  • source
  • hideshow 2 child comments
  • [โ€“] [S] 2 points 2 years ago (1 child)

    @ipacialsection I already have the debs, just looking for a repo for them to store them in a kind of more useful way. I was looking at openbuildservice.org, but I'm unsure about their terms. If I have a few games as debs that I legally got, and add them there, will they risk being taken down because of piracy? Or would I be able to set a private repo as well so only I could access it?

  • source
  • parent
  • hideshow 2 child comments
  • I honestly have only passing knowledge of it, but my understanding is that Open Build Service is more for sharing software whose source code you are allowed to distribute. If you aren't looking to distribute at all, the solutions other users suggested might be better.

    There's also a way to create an APT repository entirely on your own system, without a web server, which I haven't tried myself, but a DuckDuckGo search found this: https://help.ubuntu.com/community/Repositories/Personal

  • source
  • parent
  • [โ€“] 1 point 2 years ago

    Gitea supports Debian and other formats. https://docs.gitea.com/usage/packages/debian

  • source