nowing the package a certain program is in.

New to Debian (Or Linux in general)? Ask your questions here!

nowing the package a certain program is in.

Postby stf92 » 2018-05-31 22:18

Hi: suppose I want to download and install the locate program. In order to use apt-get to do this, I must know before hand what the package containing locate and updatedb is. How do I know it? Can apt-cache help me?
stf92
 
Posts: 41
Joined: 2018-05-27 20:16

Re: nowing the package a certain program is in.

Postby stevepusser » 2018-05-31 22:41

If you want a GUI to search and manage the results that turn up, I would recommend "packagesearch" from the repos.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: GIMP 2.10.2, Pale Moon 27.9.3, wine-staging 3.10, QuiteRSS 0.18.11, Linux kernel 4.17, Krita 4.0.4
User avatar
stevepusser
 
Posts: 9645
Joined: 2009-10-06 05:53

Re: nowing the package a certain program is in.

Postby stf92 » 2018-05-31 22:46

I would prefer to use apt-file. However
Code: Select all
root@debian:/sd# apt-file
-su: apt-file: command not found
root@debian:/sd# apt-get install apt-file
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package apt-file
root@debian:/sd#

In fact I have received this message, "E: Unable...." each time I tried to use apt-get. What can the cause possibly be? Another typical message is this:
Code: Select all
root@debian:/sd# apt-get install dlocate
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package dlocate is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'dlocate' has no installation candidate
root@debian:/sd#
stf92
 
Posts: 41
Joined: 2018-05-27 20:16

Re: nowing the package a certain program is in.

Postby stevepusser » 2018-06-01 02:37

Code: Select all
$ apt show apt-file
Package: apt-file
Version: 3.1.4


It's in the repos, so there's something wrong with your connection, software sources, or your update process. Please show us the output of "apt update", which should provide enough to see what's wrong. Often just that command is enough to get you going.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: GIMP 2.10.2, Pale Moon 27.9.3, wine-staging 3.10, QuiteRSS 0.18.11, Linux kernel 4.17, Krita 4.0.4
User avatar
stevepusser
 
Posts: 9645
Joined: 2009-10-06 05:53

Re: nowing the package a certain program is in.

Postby pcalvert » 2018-06-01 21:52

This is a very useful web page:
https://www.debian.org/distrib/packages

Scroll down to the section titled "Search the contents of packages".
“Property is the fruit of labor; property is desirable; it is a positive good
in the world. That some should be rich shows that others may become
rich, and hence is just encouragement to industry and enterprise.”
— Abraham Lincoln
pcalvert
 
Posts: 1778
Joined: 2006-04-21 11:19
Location: Sol Sector

Re: nowing the package a certain program is in.

Postby Head_on_a_Stick » 2018-06-02 09:12

"Il semble que la perfection soit atteinte non quand il n'y a plus rien à ajouter, mais quand il n'y a plus rien à retrancher."
— Antoine de Saint Exupéry, Terre des Hommes (1939).
User avatar
Head_on_a_Stick
 
Posts: 7565
Joined: 2014-06-01 17:46
Location: /dev/chair


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 4 guests

fashionable
cron