LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 06-25-2003, 06:45 AM   #1
pkoebbe
LQ Newbie
 
Registered: Jun 2003
Location: Missouri, USA
Distribution: Debian (Knoppix), SuSE 8.1
Posts: 21

Rep: Reputation: 15
apt-get question


What is the apt-get equivalent of rpm -q? For example, if I want to see what version of squid is installed (if any), with rpm I'd do:

rpm -q squid

and it would return either the version installed or that it's not available. How would I accomplish the same thing with apt-get?

Peace,
Phillip
 
Old 06-25-2003, 06:55 AM   #2
stony
Member
 
Registered: Jun 2003
Location: Europe / Germany / Saarland / Neunkirchen
Distribution: Debian (SID), Gentoo
Posts: 131

Rep: Reputation: 15
Hi,

apt-get is just a "frontend" to the package-manager DPKG. DPKG is the eq to RPM so you just have to do a:

dpkg -l | grep $package

and then you can see the version.

You can also use

apt-cache show $package

but this one shows the information and version of the latest package in /var/cache/apt/*Contents-$arch.gz which doesn't have to be installed

btw. if your looking for a file and want to know in which package it is use apt-file search $filename

cu
 
Old 06-25-2003, 07:32 AM   #3
pkoebbe
LQ Newbie
 
Registered: Jun 2003
Location: Missouri, USA
Distribution: Debian (Knoppix), SuSE 8.1
Posts: 21

Original Poster
Rep: Reputation: 15
stony, how did I know you'd provide the answer?

That was *exactly* what I was looking for, and it's even better than the rpm solution!

Peace,
Phillip

Last edited by pkoebbe; 06-25-2003 at 07:34 AM.
 
Old 07-02-2003, 10:54 AM   #4
softgun
Member
 
Registered: Jun 2003
Posts: 119

Rep: Reputation: 15
apt-get download only

Hi

How can I download the necesary packages into a CD-R or CD-RW or to a directory/folder in my HDD without installing?

I read that you can use apt-get -d packagename

How do I control where these get downloaded to? Supposing there is a diretory called mydebs, how do I use apt-get -d postgresql and see that all the postgrewsql related packages are downloaded into mydebs??

Thanks for any help with apt
 
Old 07-03-2003, 03:43 AM   #5
BittaBrotha
Member
 
Registered: Jan 2002
Location: Third Stone from the Sun
Distribution: Debian Sid, SourceMage 0.9.5, & To be Continued on a TP
Posts: 800

Rep: Reputation: 31
The APT Howto
 
Old 07-06-2003, 01:58 AM   #6
softgun
Member
 
Registered: Jun 2003
Posts: 119

Rep: Reputation: 15
oops! I read it. Maybe it is not good enough or I am not good enough to understand it
 
Old 07-06-2003, 02:05 AM   #7
footfrisbee
Member
 
Registered: Apr 2003
Distribution: Debian Sarge
Posts: 259

Rep: Reputation: 30
Just run

# apt-get -d install <package>

The downloaded .deb will be put in /var/cache/apt/archives, unless you change that in the apt.conf which I wouldn't recommend doing.

If you're looking to build a mini mirror check out apt-move. You can then make an iso image out of your mini mirror with debian-cd.
 
Old 07-06-2003, 04:31 PM   #8
stony
Member
 
Registered: Jun 2003
Location: Europe / Germany / Saarland / Neunkirchen
Distribution: Debian (SID), Gentoo
Posts: 131

Rep: Reputation: 15
Hi,

use the mirror script if you want to download a mirror. And also if you want do have up to date cds, build 'em with jigdo, then copy 'em to the harddrive and then do a rsync with this "image" (don't make an image of the cd an then run rsync over the mounted image, won't work if the new packages are bigger then the old ones ...)

cu
 
  


Reply



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 -d question crispyleif Debian 6 11-17-2005 09:23 PM
a question about apt MaTrIx709 Debian 2 11-13-2005 09:27 AM
apt-get Question ? moby Linux - Newbie 13 07-27-2004 08:34 AM
Yet Another Apt-Get Question akk Linux - Newbie 1 03-28-2004 02:44 AM
question about apt shane25119 Linux - Software 3 02-19-2004 12:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 01:18 AM.

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
Open Source Consulting | Domain Registration