Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 996  / 2 Years ago, sat, september 24, 2022, 8:19:55

If I want to know if skype is installed, I would type this:



viggy@ubuntu:~$ apt-cache policy skype
skype:i386:
Installed: 4.0.0.8-1
Candidate: 4.0.0.8-1
Version table:
*** 4.0.0.8-1 0
100 /var/lib/dpkg/status


Or if Eclipse is installed:



viggy@ubuntu:~$ apt-cache policy eclipse
eclipse:
Installed: (none)
Candidate: 3.7.2-1
Version table:
3.7.2-1 0


But let's say I want to know if the Java Virtual Machine is installed. How would I know what to pass to apt-cache policy? For example, you might not know what to pass to apt-cache policy for some programs:



viggy@ubuntu:~$ apt-cache policy java
N: Unable to locate package java
viggy@ubuntu:~$ apt-cache policy JVM
N: Unable to locate package JVM

More From » apt-cache

 Answers
3


You can search for a program title using the following command:



apt-cache search TitleYouWant


This will search for any package that has the word in it.
Update the apt-get list of packages first using:



sudo apt-get update

[#34497] Monday, September 26, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
rillrage

Total Points: 122
Total Questions: 120
Total Answers: 103

Location: Tokelau
Member since Thu, Aug 26, 2021
3 Years ago
;