LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-22-2013, 12:56 PM   #1
Juc1
Member
 
Registered: Sep 2011
Location: UK
Posts: 83

Rep: Reputation: 6
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...
 
Old 07-22-2013, 01:04 PM   #2
snowpine
Senior Member
 
Registered: Feb 2009
Posts: 4,193

Rep: Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182
I personally use "apt-cache policy" for example:

Code:
apt-cache policy cowsay
 
Old 07-23-2013, 09:39 AM   #3
kyr0
LQ Newbie
 
Registered: Jun 2011
Distribution: Debian
Posts: 27

Rep: Reputation: 14
If you want a list of all packages installed with their version number you can use the following:
Code:
dpkg -l | grep '^ii'
K.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apt-get update and apt-get install problem please solve it. regent_royal Linux - Newbie 11 06-26-2008 07:38 AM
Is there knoppix-like distro, that we can: apt-get update; apt-get install programs ? frenchn00b Linux - Distributions 7 04-28-2008 02:06 PM
Connection - install - apt-get update tommytomato Linux - General 2 06-30-2007 07:45 PM
apt-get install not working / apt-get update is ok remy215 Debian 2 10-01-2005 07:02 PM
Base Redhat9 install, then using apt to update and install slewis1972 Linux - General 1 07-04-2003 04:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration