-
How can I search this repository to get a list of package names with a short description? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Unfortunately, since short descriptions can vary between versions, there isn't a way to get the short description for every package using the winget client. There are workarounds, however, such as parsing the manifest files using PowerShell or Bash, or using SQL to query against the index.db file contained within the source.msix file |
Beta Was this translation helpful? Give feedback.
-
https://blog.jeffbolduan.com/Automating-Against-the-WinGet-Database-Using-PowerShell/ |
Beta Was this translation helpful? Give feedback.
-
Thanks to @SpecterShell 's link. This is how you do it:
-- Filename: my_query.sql
-- Run with: sqlite3 -init "my_query.sql" winget_src_msix_index.db
.headers on
-- [box, csv, tabs, table, column] etc...
.mode table
-- The "full" Query:
-- SELECT manifest.rowid, ids.id, names.name, monikers.moniker, versions.version, pathparts.pathpart, pathparts.parent
SELECT manifest.rowid, ids.id, names.name, versions.version
FROM manifest
LEFT JOIN ids ON ids.rowid=manifest.id
LEFT JOIN names ON names.rowid=manifest.name
LEFT JOIN monikers ON monikers.rowid=manifest.moniker
LEFT JOIN versions ON versions.rowid=manifest.version
LEFT JOIN pathparts ON pathparts.rowid=manifest.pathpart
-- lool for specifics:
WHERE names.name LIKE '%Zoom%'
-- [ASC, DESC]
ORDER BY ids.id ASC
LIMIT 20
;
.exit Run with: $ sqlite3 -init "my_query.sql" winget_src_msix_index.db
-- Loading resources from my_query.sql
+-------+-----------+------+----------+
| rowid | id | name | version |
+-------+-----------+------+----------+
| 27 | Zoom.Zoom | Zoom | 5.9.3931 |
| 28 | Zoom.Zoom | Zoom | 5.9.3799 |
| 29 | Zoom.Zoom | Zoom | 5.9.3169 |
| 30 | Zoom.Zoom | Zoom | 5.9.2581 |
| 31 | Zoom.Zoom | Zoom | 5.9.2481 |
| 32 | Zoom.Zoom | Zoom | 5.8.2058 |
| 33 | Zoom.Zoom | Zoom | 5.8.2048 |
| 34 | Zoom.Zoom | Zoom | 5.8.1736 |
| 35 | Zoom.Zoom | Zoom | 5.8.1581 |
| 36 | Zoom.Zoom | Zoom | 5.8.1435 |
| 37 | Zoom.Zoom | Zoom | 5.8.1324 |
| 38 | Zoom.Zoom | Zoom | 5.7.939 |
| 39 | Zoom.Zoom | Zoom | 5.7.804 |
| 40 | Zoom.Zoom | Zoom | 5.7.543 |
| 41 | Zoom.Zoom | Zoom | 5.7.522 |
| 42 | Zoom.Zoom | Zoom | 5.7.1247 |
| 43 | Zoom.Zoom | Zoom | 5.7.1105 |
| 44 | Zoom.Zoom | Zoom | 5.7.1055 |
| 45 | Zoom.Zoom | Zoom | 5.7.1020 |
| 46 | Zoom.Zoom | Zoom | 5.6.961 |
+-------+-----------+------+----------+
SQLite version 3.39.2 2022-07-21 15:24:47
Enter ".help" for usage hints.
sqlite> |
Beta Was this translation helpful? Give feedback.
Unfortunately, since short descriptions can vary between versions, there isn't a way to get the short description for every package using the winget client. There are workarounds, however, such as parsing the manifest files using PowerShell or Bash, or using SQL to query against the index.db file contained within the source.msix file