Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
neofetch
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
neofetch
Commits
50a8bd28
Commit
50a8bd28
authored
Jun 11, 2021
by
Dylan Araps
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
packages: Use dnf cache if available. Closes #1730
parent
41f75b7b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
neofetch
neofetch
+7
-1
No files found.
neofetch
View file @
50a8bd28
...
...
@@ -1523,7 +1523,6 @@ get_packages() {
has cpt-list && tot cpt-list
has pacman-key && tot pacman -Qq --color never
has apt && tot apt list --installed && ((packages-=1))
has rpm && tot rpm -qa
has xbps-query && tot xbps-query -l
has apk && tot apk info
has opkg && tot opkg list-installed
...
...
@@ -1537,6 +1536,13 @@ get_packages() {
has butch && tot butch list
has swupd && tot swupd bundle-list --quiet
# Using the dnf package cache is much faster than rpm.
if has dnf && type -p sqlite3 >/dev/null && [[ -f /var/cache/dnf/packages.db ]]; then
pac "$(sqlite3 /var/cache/dnf/packages.db "SELECT count(pkg) FROM installed")"
else
has rpm && tot rpm -qa
fi
# 'mine' conflicts with minesweeper games.
[[ -f /etc/SDE-VERSION ]] &&
has mine && tot mine -q
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment