thioshp

Get URLs of All Installed Packages

Sep 8th, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.38 KB | None | 0 0
  1. #!/data/data/com.termux/files/usr/bin/bash
  2.  
  3. # Display URLs for all installed pkgs
  4.  
  5. # List of installed pkgs
  6. PKGLIST=$(pkg list-installed | cut -d/ -f1 | grep -v Listing)
  7.  
  8. # Process each pkg to get its Homepage URL. Uncomment line after done to save results to ~/pkgurls.url
  9. echo $PKGLIST | while read pkg;
  10. do
  11.     pkg show "$pkg" | rg "Homepage" | cut -d" " -f2;
  12. done #| tee ~/pkgurls.url
Add Comment
Please, Sign In to add comment