LinuxQuestions.org
Help answer threads with 0 replies.
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 12-04-2009, 09:40 PM   #1
slide77
LQ Newbie
 
Registered: Jun 2007
Posts: 22

Rep: Reputation: 16
Quick apt-cache question


When using apt-cache to find the reverse depends of a package, it would only show dependencies for packages in repositories that you have added wouldn't it? It wouldn't show that a package in a repository that your apt has never heard of depends on it?

I'm a slackware guy and don't use apt but am helping someone else and I almost told them that before I realized that I just made it up out of the blue. My common sense tells me it has to work that way, but I thought I better find out and google didn't help.

Thanks.
 
Old 12-04-2009, 10:37 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
File /etc/apt/sources.list names the repositories to be searched.

Apt -update updates the list of packages that need to be updated.

Apt -upgrade upgrades the necessary packages.
 
Old 12-05-2009, 07:31 AM   #3
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Stable
Posts: 1,508

Rep: Reputation: Disabled
Quote:
When using apt-cache to find the reverse depends of a package
Use apt-cache rdepends <package> for this.
Or for the dependencies of a particular package use apt-cache depends <package>.

Quote:
it would only show dependencies for packages in repositories that you have added wouldn't it?
That's correct.
You add an entry in your sources.list than do aptitude update,then the new packages should be available to you.
In some instances you may need to install a 'keyring' for the appropriate repository also.

Quote:
Apt -update updates the list of packages that need to be updated.

Apt -upgrade upgrades the necessary packages.
Debian advocates the use of Aptitude now and has done since Etch went Stable.
So the way to upgrade now is:

aptitude update
aptitude safe-upgrade

Or a more 'aggressive' upgrade installing new libs to satisfy dependencies use:

aptitude full-upgrade

You can still use apt-get of course.
 
  


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
How to prevent apt from deleting packages in /var/cache/apt/archives ? abc.linux Debian 11 11-07-2009 12:46 PM
I bricked my NAS? :( aptitude, apt-get, apt-cache segfaults immediately omegaworks Linux - Server 5 11-07-2009 09:21 AM
cache folder like /var/cache/apt/packages on Debian Shaddy SUSE / openSUSE 0 08-13-2006 11:02 AM
apt-file vs apt-cache vsurlan Linux - Software 1 07-13-2006 07:33 AM
apt-cache question Rav3n Debian 11 07-17-2004 07:05 PM

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

All times are GMT -5. The time now is 04:28 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