-
Notifications
You must be signed in to change notification settings - Fork 7
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 a way to install only main binary/package (Needed files) #23
Comments
This comment has been minimized.
This comment has been minimized.
I think it makes more sense to fetch packages without the log/sbuild/metadata files by default. These are usually unnecessary to keep around unless the user want to view them. I'd also suggest we implement more fine-grained download control:
We should also make this a config option so users don't need to specify preferences for every install. And, these also need be tracked in the database for future updates of the package. |
Need at least the LICENSE, otherwise would get called out for that too.
If you go that far, then allowing direct filename like soar dl's The most pressing issue is you allow a bare install, whatever extra flags-features enable this feature is fine by me. |
Yes, re-read.
filenames won't be ideal for global config option or flag when installing multiple packages. The only option is to use the deterministic type of the file. |
I ended up with just having the ability to |
Currently, there's no way to specify that soar install only the main binary/package
For instance:
$ du -sh ~/.local/share/soar/packages/whoami-git.busybox.net.busybox.standalone.glibc-4bXEiXWyXgL9/whoami 844K /home/runner/.local/share/soar/packages/whoami-git.busybox.net.busybox.standalone.glibc-4bXEiXWyXgL9/whoami
Soar installed 11 MB of stuff that could have been skipped.
Proposals
--binary-only
This could also be called
--bare
or something elseThis would use
ghcr_blob
to download the main package, however to not break signing etc,we can keep the existing logic but include only
pkg_name
+pkg_name.sig
(sig would be removed after verification)For
static
this would work out of the box, for other formats that need desktop integration, we can introduce--minimal
This would install the main pkg + icons/desktop files and nthg else
We can fetch logs etc on demand if local file doesn't exist
Note
It is better to reserve
--needed
as it is already used by pacman and implies: Install only if not already installedWhere would this be useful?
For starters, would save lots of bandwidth & storage for power users (who read manuals)
And on containers where storage is crucial, adding these option would make soar ideal choice rather than hackish script in bash that do the same thing
The text was updated successfully, but these errors were encountered: