<@UQZM2T4FN> Thanks for all your work on the Arch ...
# linux
r
@Anatol Pomazau Thanks for all your work on the Arch Linux package. Do you mind clarifying why
rpmtools
and
dpkg
are necessary for these? When building locally, it seems like
Copy code
git python3 bison flex make
are the only requirements. (I haven't tried to run it though)
a
There is not much reason actually. And it done mostly because of historical reason - when I was brining it up at Arch I just enabled all the feature to make sure it compiles fine with Arch' toolchain. I think these deps can be disabled. And we also need pacman/libalpm integration.
r
@Anatol Pomazau Awesome, thanks for the response. Is there something I can do to help to accomplish this? When I try to do an install from AUR the installed size is over 500MB. I'd love to get that down to something a little more reasonable and have a minimal set of dependencies.
a
You don't need to install
osquery
from AUR. The package is available in the standard repo https://www.archlinux.org/packages/community/x86_64/osquery/
r
@Anatol Pomazau Sorry, I just woke up and didn't communicate that very well. Both the AUR and the standard community repo end up having an install size of over 500MB which seems very large for an agent. I wouldn't mind helping out trying to help minimize some of the dependencies if you'd like. Not really sure where to start here though.
a
To remove these large dependencies you can try to rebuild this package manually https://git.archlinux.org/svntogit/community.git/tree/trunk?h=packages/osquery without
rpm-tools
dpkg
dependencies.
Let me know if it works for you
r
@Anatol Pomazau Found the culprit.
Copy code
447.53MiB community/aws-sdk-cpp
a
Oh yeah, it is a huge beast
r
Maybe we can move that to a makedepends instead of a depends? 🤔
a
This library is a runtime dependency. So it is impossible to move to makedeps.
r
The full SDK is a runtime dependency?
a
From the bright side this dependency is downloaded only once. You won't download it often.
Probably not the full one but only part of it.
r
Interesting. I am trying a rebuild with aws-sdk-cpp as a makedepend to see if it's actually runtime or just a compile time dependency.
t
If it helps, osquery only uses the
ec2
,
kinesis
,
firehose
and
sts
libraries within
aws-sdk-cpp
.
r
That's fair, its just hard to imagine people will install a 500MB dependency for a single application, as nothing else in arch repos requires it. Even electron has a smaller footprint... which says a lot.
a
I think it would be possible to break this Arch package into multiple smaller ones, like
aws-sdk-cpp-ec2
,
aws-sdk-cpp-firehose
, ... Though it makes sense to release only subset of the project components - for beginning only those 4 used by
osquery
and then add more if needed.
Please file an Arch bug to track this activity
Also note that 447MiB is installed size. The package (download) size is only 40MiB. A large part of the package are header files.
r
Will do. I assume you want the bug filed against aws-sdk-cpp?
a
yes. and share the ticket with me so I assign it to myself.
r
I put it under general gripe, since it's my gripe about install size 😛
a
Thanks a lot @rokusei
r
Thank you for all the work you do!
a
As an intermediate fix I restricted set of components installed by
aws-sdk-cpp
package to only those 4 needed by osquery. The download size of the package is reduced to 3.5 MiB.