Created
January 29, 2025 15:07
-
-
Save datadavev/df83ce3a324f858afa9a408c047b9489 to your computer and use it in GitHub Desktop.
List of dataone managed packages on a CN
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export CN="${CN:=cn-ucsb-1.dataone.org}" | |
ssh ${CN} 'for PKG in $(apt list --installed | grep dataone | cut -d "/" -f 1); do echo "package,file_name"; for FN in $(dpkg -L $PKG); do echo "${PKG},${FN}"; done; done' | gh gist create -p -f dataone_packages.csv -d "cn-ucsb-1 package list $(date -I). Created with 'https://gist.github.com/datadavev/df83ce3a324f858afa9a408c047b9489'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment