The Following User Says Thank You to magullo For This Useful Post: | ||
![]() |
2014-06-25
, 09:42
|
|
Posts: 6,436 |
Thanked: 12,701 times |
Joined on Nov 2011
@ Ängelholm, Sweden
|
#2
|
The Following User Says Thank You to coderus For This Useful Post: | ||
![]() |
2014-06-25
, 09:52
|
Posts: 176 |
Thanked: 122 times |
Joined on Apr 2010
|
#3
|
The Following User Says Thank You to magullo For This Useful Post: | ||
![]() |
2014-06-25
, 16:55
|
|
Posts: 5,339 |
Thanked: 4,133 times |
Joined on Jan 2010
@ Israel
|
#4
|
I looked in pkcon documentation, but could not find how. Which option does give "what"? Is it "what-provides"? It doesn't work...
zypper what-provides <package_name>
zypper what-provides <package_name>|tail -1|awk '{print $11}'
![]() |
2016-01-20
, 19:17
|
|
Posts: 22 |
Thanked: 13 times |
Joined on Sep 2010
|
#5
|
#!/bin/sh installed=($(pkcon get-packages --filter installed | tail -n +6 | awk '{print $2}')) for pkg in ${installed[@]}; do # <pkgname-version-relversion.arch> pkgname=${pkg%-*-*.*} echo -n "Looking for ${pkgname}..." count=$(pkcon search name ${pkgname} | wc -l) if [[ ${count} = 7 ]]; then echo " NOT FOUND" missing="${missing} ${pkgname}" else echo " OK" fi done [[ -n ${missing} ]] && echo "pkcon cannot find these packages: ${missing}"
The Following 5 Users Say Thank You to ilpianista For This Useful Post: | ||
I'd like to know if there's a way to list installed packages, grouped by their (eventual) own repository.
I installed a lot of things on my jolla, mainly via WareHouse but also by myself, and a lot of dependencies were installed as well.
Now I'd like to tidy things a bit, leaving only what is really needed.
So the question: can I understand what channel a package belongs to?
Thanks.