List .app applications and macOS Components

List “.app” Applications

ls /Applications/ | awk -F '.app' '{ print $1}' -

ls / | awk -F '.app' '{ print $1}' >> ~/Desktop/ListOfAllAPPs.txt

Use SystemProfiler Find Identified Developers
system_profiler SPApplicationsDataType -json | awk -F'"' '/_name|obtained_from|path|install_date/{print $1,$2,$3,$4}' | grep -A3 "identified_developer" >> ~/Desktop/identified_developer.txt

Use SystemProfiler Apple
system_profiler SPApplicationsDataType -json | awk -F'"' '/_name|obtained_from|path|install_date/{print $1,$2,$3,$4}' | grep -A3 "identified_developer" >> ~/Desktop/identified_developer.txt

Use SystemProfiler Apple
system_profiler SPApplicationsDataType | grep -B 6 -A 2 “(Intel): No”

Identify any unsigned applications that have been installed on the system:
/usr/sbin/system_profiler SPApplicationsDataType | /usr/bin/grep -B 3 -A 4 -e "Obtained from: Unknown" | /usr/bin/grep -v -e "Location: /Library/Application Support/Script Editor/Templates" -e "Location: /System/Library/" | /usr/bin/awk -F "Location: " '{print $2}' | /usr/bin/sort -u

Identify any signed applications that have been installed on the system:
/usr/sbin/system_profiler SPApplicationsDataType | /usr/bin/grep -B 3 -A 4 -e "Obtained from: Apple" | /usr/bin/grep -v -e "Location: /Library/Application Support/Script Editor/Templates" -e "Location: /System/Library/" | /usr/bin/awk -F "Location: " '{print $2}' | /usr/bin/sort -u

https://stigviewer.com/stig/apple_os_x_10.15_catalina/2021-03-29/finding/V-225194

Link
https://ss64.com/osx/system_profiler.html

system_profiler SPApplicationsDataType | grep -A 4 | grep location

system_profiler SPApplicationsDataType | grep -A 3 PowerPC | grep Location

*Find NON-Apple Applications and Version Numbers
find /Applications -name *.app -maxdepth 2 -exec sh -c '[[ ! $(defaults read "{}"/Contents/Info.plist CFBundleIdentifier) =~ "com.apple" ]] && echo "$(basename "{}" | sed 's/.app.*//')-$(defaults read "{}"/Contents/Info.plist CFBundleShortVersionString)"' \;

*Find NON-Apple Applications and Version Numbers
find /Applications -name *.app -maxdepth 2 -exec sh -c '[[ ! $(defaults read "{}"/Contents/Info.plist CFBundleIdentifier) ≠ "com.apple" ]] && echo "$(basename "{}" | sed 's/.app.*//')-$(defaults read "{}"/Contents/Info.plist CFBundleShortVersionString)"' \;

+=≠
system_profiler SPApplicationsDataType -json | awk -F'"' '/_name|obtained_from|path/{print $1,$2,$4}' | sed -e 's/_name /Name: /g;s/obtained_from /obtained_from: /g;s/install_date /Date: /g' >> ~/Desktop/intofmpro.txt
+=≠

https://stackoverflow.com/questions/39378631/how-to-find-all-installed-applications

https://stigviewer.com/stig/apple_os_x_10.15_catalina/2021-03-29/finding/V-225194

Links:
https://unix.stackexchange.com/questions/20979/how-do-i-list-all-installed-programs

Wiki List of Components
https://en.wikipedia.org/wiki/List_of_macOS_components

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top
Share via
Copy link