Skip to content
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

Apple Silicon Homebrew Packages location #768

Closed
unixb0y opened this issue Jun 10, 2023 · 1 comment
Closed

Apple Silicon Homebrew Packages location #768

unixb0y opened this issue Jun 10, 2023 · 1 comment

Comments

@unixb0y
Copy link

unixb0y commented Jun 10, 2023

I'm submitting a ... (check one with "x")

[X] bug report
[ ] new distro request

Bug report

screenfetch
ls: /usr/local/Cellar/: No such file or directory
[...] (rest looks ok)

Basically, this line has to be changed. The current version probably just works for Intel Macs, so there needs to be a switch that uses a different location based on architecture.

According to Stack Overflow:

brew_pkgs=$(ls -1 /usr/local/Cellar/ | wc -l) # for Intel

brew_pkgs=$(ls -1 /opt/homebrew/Cellar/ | wc -l) # for Apple Silicon

Alternatively, something like this may work (only tested on Apple Silicon):

brew_pkgs=$(ls -1 $(brew --prefix)/Cellar | wc -l)
@JoeNyland
Copy link

This has been fixed in 7942bb2. If you're still seeing this issue, try installing from HEAD (brew install --HEAD screenfetch) as the version in Homebrew is out of date.

@unixb0y unixb0y closed this as completed Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants