Listing installed packages

Asked by ogbos

I have tried to install a package ctv_0.5-3.tar.gz using command line. I wish to know if this program has been actually installed. Please what command do I use to see the packages that are installed on my system

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
jtniehof
Solved:
Last query:
Last reply:
Revision history for this message
Tom (tom6) said :
#1

Hi :)

I only know how to get the list from synaptic and it isn't straight-forwards
https://help.ubuntu.com/community/SynapticHowto
Use Synaptic's "File" menu and click on "Save markings As ..." then tick the box at the bottom that says "Save full state, not only changes" and invent a name and save the text-based list to somewhere easy to find.

Alternatively you could just use either search tool in synaptic to search for the ctv package. I prefer using the search button because it searches in package descriptions as well as titles so it allows me to be a lot more vague.

Any package marked by a green blob in synaptic is already installed but it allows you to re-install in case that helps and also the "Edit" menu has "Fix broken packages", both of which require you to click the "Apply" button when you have done everything else like "Mark all updates"

Good luck and regards from
Tom :)

Revision history for this message
peter b (b1pete) said :
#2

ogbos,

in a terminal window just do

dpkg --get-selections > installed-software

then open installed-software file in home folder.

peter b

Revision history for this message
Best jtniehof (jtniehof) said :
#3

Installing from a .tar.gz will usually not make the package show up in dpkg/apt/synaptic. The way to check for a successful installation will depend on what you tried to install. Usually something goes in either /usr/bin or /usr/local/bin, but really it's best to just try and use what you installed. I'm completely unfamiliar with R so I can't really figure out what's supposed to happen...try using "locate ctv-client" from a command line.

If you just want to install packages from CRAN, lots are in Ubuntu already. Try "aptitude search r-cran" for a list, or look for packages with names that start r-cran in synaptic.

Revision history for this message
ogbos (ogbos-okike) said :
#4

This helps, though instead of 'locate ctv-client', I used library("ctv"). Yes. Using the package is an a good way of checking if a package has been installed