I am on an Ubuntu system that has the multiverse repository enabled, and I'd like to see whether I can disable it.
How can I check whether any package from multiverse is installed on the system?
I am on an Ubuntu system that has the multiverse repository enabled, and I'd like to see whether I can disable it.
How can I check whether any package from multiverse is installed on the system?
Brute force:
dpkg --list | grep "^i" | awk '{print $2}' | while read P ; do D=$(apt-cache policy ${P} | grep "multiverse" | head -1) ; if [[ ${#D} -gt 0 ]] ; then echo "${P}:${D}" ; fi ; done
The easiest way is in synaptic. Or you can use dpkg-query.
dpkg-query -W -f='${Section}\t\t${Package}\n' | grep -e ^multiverse
I revert my incorrect answer.
dpkg -l | awk '/^.i/ {print $2}' | xargs apt-cache policy | awk '/^[a-z0-9.\-]+:/ {pkg=$1}; /\*\*\*/ {OFS="\t"; ver=$2; getline; print pkg,ver,$2,$3}'|grep -v /var/lib/dpkg/status| sed -e 's/://'|awk '{printf "%-40s %-36s %-36s %-16s \n",$1,$2,$3, $4}' | grep multiverse
Section
is not Origin
.
– mook765
Sep 19 '19 at 11:01
synaptic
displays the origin, but I can't install it on a server. Where does it get its info from?
– Reinier Post
Sep 19 '19 at 21:04
multiverse
is not a repository with a separate URL, but a section within a repository. The answer given there with aptitude doesn't work here; what may work isaptitude search '?section (multiverse) ?installed'
– Reinier Post Sep 19 '19 at 21:47