Added function to list files of a Debian package.
This commit is contained in:
parent
98dd91f5f5
commit
d60eb95920
@ -114,10 +114,17 @@ list-ssh-keys() {
|
||||
}
|
||||
|
||||
{{- if (or (eq .chezmoi.osRelease.id "debian") (eq .chezmoi.osRelease.id "linuxmint")) }}
|
||||
# Show version of a Debian package
|
||||
debversion() {
|
||||
local pkgname="${1:?packagename required}"
|
||||
dpkg -s $pkgname | grep Version
|
||||
}
|
||||
|
||||
# Show files of a Debian package
|
||||
deblist() {
|
||||
local pkgname="${1:?packagenamme required}"
|
||||
dpkg-query -L $pkgname
|
||||
}
|
||||
{{- end }}
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user