LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   apt-get update / install (https://www.linuxquestions.org/questions/linux-newbie-8/apt-get-update-install-4175470521/)

Juc1 07-22-2013 12:56 PM

apt-get update / install
 
Hi all,

Quote:

Your computer has a list (such as a catalog) that contains all the available software that the ubuntu servers have available...
This (quoted from here) seems to say that there is a file on my Ubuntu server which lists all available packages (with their version numbers). If so can anyone please tell me where I can find / view this file?

And anyway after running $ apt-get update can I check what version of a particular package would be installed by $ apt-get install ?



Thanks...

snowday 07-22-2013 01:04 PM

I personally use "apt-cache policy" for example:

Code:

apt-cache policy cowsay

kyr0 07-23-2013 09:39 AM

If you want a list of all packages installed with their version number you can use the following:
Code:

dpkg -l | grep '^ii'
K.


All times are GMT -5. The time now is 07:28 AM.