Subject: [alpine-devel] Total Packages

From: Lucas Ramage <[email-masked]>
Date: Tue, 6 Feb 2018 20:51:02 -0500

Hello,

I am trying to find the total number of packages in the aports tree.

These are my results,
- main (2031)
- community (1157)
- testing (1294)
- non-free (9)
- unmaintained (39)

Here is what I attempted,

    $ for repo in main community testing non-free unmaintained; do
    >  find $repo -maxdepth 2 -type d | wc -l
    > done

​I then subtracted one from each because it is including the directory
itself.​

Does that seem reasonable?

-- 

 <https://lramage94.github.io>

*Lucas Ramage* / Software Engineer
[email-masked] / (941) 404-6794

*PGP Fingerprint* / Learn More <https://emailselfdefense.fsf.org/en/>
EAE7 45DF 818D 4948 DDA7 0F44 F52A 5A96 7B9B 6FB7
<https://pgp.mit.edu/pks/lookup?op=get&search=0xF52A5A967B9B6FB7>

*Visit online journal*
http://lramage94.github.io <https://lramage94.github.io>

  <https://github.com/lramage94>
<https://www.linkedin.com/in/lramage94>

---

From: Svyatoslav Mishyn <[email-masked]>
Date: Wed, 7 Feb 2018 12:30:55 +0200

Hi,

(Tue, 06 Feb 20:51) Lucas Ramage:
> I then subtracted one from each because it is including the directory
> itself.
> 

I searched against name APKBUILD, and results almost identical (only
main -1):

/home/juef/alpine/aports: for repo in main community testing non-free unmaintained; do
> printf "%-15s%d\n" "$repo:" "$((find $repo -name APKBUILD) | wc -l)"
> done
main:          2030
community:     1157
testing:       1294
non-free:      9
unmaintained:  39

-- 
https://www.juef.space/

---

From: Lucas Ramage <[email-masked]>
Date: Wed, 7 Feb 2018 07:39:23 -0500

Awesome. I wasn't completely off.

Thanks,

-- 

*Visit online journal*