Musl Distros - GNU/Linux
Users browsing this thread: 5 Guest(s)
|
|||
pm(1) only takes local files as arguments, it is not meant to deal with external repos of some kind.
I have written two small shell script, namely repo(1) and repogen(1) to deal with remote tarball fetching or whatever. I've listed some examples in pm's README, but for all the lazy asses in there (I know there's a lot of you!), here is an idea of how it works. Let's say you have two machines, "server" and "client". On the server, you'll have the build system of your choice, having all tarballs created under /var/www/dl.z3bra.org/releases. You'd use repogen(1) to turn this directory into a repository (it simply generate a .list file, with the name, version and checksum of all tarballs): Code: [root@server ~]# repogen /var/www/dl.z3bra.org/releases Now that you have your remote repo setup, you can sync it locally using the repo(1) utility: Code: [z3bra@client ~]$ export REPO=$HOME/repo Syncing the repository will NOT download all the tarballs. That would be a huge waste of time. You can list the content of your local repo with "repo -l". This will give the same output as when you sync the repo, minus the checksums. To actually download a tarball, simply run repo(1) with the name of the pack you want. Once done, the full path to the tarball will be printed to stdout: Code: [z3bra@client ~]$ repo dash If you call the command again, repo will check the tarball's checksum against its local .list file, and if they match, will output the full path again to stdout, without redownloading the file (this makes sense right?) You can then use repo's output to feed pm(1) without having to know where the tarballs are located: Code: [z3bra@client ~]$ pm -a $(repo dash) is equivalent to: Code: [z3bra@client ~]$ repo dash At some point, I'll try to make pm read path from stdin, leading to a simpler way to install tarballs ;) Repo can already read pack names from stdin, leading to some neat one liners! For example, to download all packs except the libraries, you can run the following: Code: [z3bra@client ~]$ repo -s | grep -v 'lib' | cut -f1 | repo Note that this is still a work in progress, which is why I didn't commit neither repo(1) nor repogen(1). I'm still trying to figure out how they should work, and what the workflow should be. If you're interrested in giving it a shot, and reporting some points that might be awkward or incoherent, just ask and I'll paste the scripts ;) |
|||
Messages In This Thread |
Musl Distros - by xikuuky - 27-12-2015, 05:01 AM
RE: Musl Distros - by xikuuky - 27-12-2015, 06:02 AM
RE: Musl Distros - by Houseoftea - 27-12-2015, 12:55 PM
RE: Musl Distros - by sth - 27-12-2015, 01:41 PM
RE: Musl Distros - by z3bra - 28-12-2015, 04:22 AM
RE: Musl Distros - by xikuuky - 28-12-2015, 06:49 AM
RE: Musl Distros - by z3bra - 28-12-2015, 08:46 AM
RE: Musl Distros - by xikuuky - 28-12-2015, 11:27 AM
RE: Musl Distros - by Houseoftea - 29-12-2015, 10:55 AM
RE: Musl Distros - by z3bra - 29-12-2015, 01:48 PM
RE: Musl Distros - by Houseoftea - 29-12-2015, 03:03 PM
RE: Musl Distros - by xikuuky - 29-12-2015, 04:48 PM
RE: Musl Distros - by z3bra - 29-12-2015, 05:11 PM
RE: Musl Distros - by xikuuky - 30-12-2015, 01:49 AM
RE: Musl Distros - by xikuuky - 30-12-2015, 12:21 PM
RE: Musl Distros - by z3bra - 30-12-2015, 09:13 PM
RE: Musl Distros - by Houseoftea - 30-12-2015, 09:52 PM
RE: Musl Distros - by z3bra - 31-12-2015, 05:21 AM
RE: Musl Distros - by z3bra - 07-01-2016, 08:28 PM
RE: Musl Distros - by apk - 07-01-2016, 10:32 PM
RE: Musl Distros - by z3bra - 08-01-2016, 08:35 AM
RE: Musl Distros - by apk - 08-01-2016, 01:09 PM
RE: Musl Distros - by z3bra - 15-01-2016, 08:51 AM
RE: Musl Distros - by venam - 16-01-2016, 03:52 AM
RE: Musl Distros - by XcelQ - 24-01-2016, 01:10 PM
RE: Musl Distros - by z3bra - 09-02-2016, 07:56 AM
RE: Musl Distros - by venam - 09-02-2016, 09:52 AM
RE: Musl Distros - by z3bra - 09-02-2016, 10:00 AM
RE: Musl Distros - by z3bra - 15-06-2017, 06:22 AM
RE: Musl Distros - by jkl - 15-06-2017, 09:13 AM
RE: Musl Distros - by Pieces Of Quiet - 15-06-2017, 02:16 PM
RE: Musl Distros - by jkl - 07-02-2018, 08:20 AM
RE: Musl Distros - by z3bra - 07-02-2018, 11:38 AM
RE: Musl Distros - by evbo - 07-02-2018, 01:24 PM
RE: Musl Distros - by jkl - 07-02-2018, 04:43 PM
RE: Musl Distros - by z3bra - 07-02-2018, 07:20 PM
RE: Musl Distros - by jkl - 07-02-2018, 07:23 PM
RE: Musl Distros - by evbo - 07-02-2018, 08:24 PM
RE: Musl Distros - by z3bra - 08-02-2018, 04:51 AM
RE: Musl Distros - by jkl - 08-02-2018, 04:53 PM
|