LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 05-07-2012, 04:04 PM   #1
bwilky11
LQ Newbie
 
Registered: Apr 2012
Posts: 6

Rep: Reputation: Disabled
Installing services using apt-get install *service name* Unable to locate package.


I have been unable to install certain services on my Debian virtual machine.

cpuspeed, crond, functions, ipmi, ip6tables, network, restorecond, smartd, and the list grows.

I am using the command:
apt-get install *package name*

Is this because these packages are not for Debian? If so what is the workflow to be able to tell the equivalent package for Debian? It seems so difficult to translate from say Redhat to Debian at times. Flood of info on the internet.
 
Old 05-07-2012, 04:15 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
# apt-file search <file>

Or use the online search for file names :
http://packages.debian.org/search?se...keywords=crond
http://packages.debian.org/search?su...words=cpuspeed
keywords=cpuspeed : The package name is 'munin-node'.
 
Old 05-07-2012, 04:22 PM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Gentoo
Posts: 15,438
Blog Entries: 2

Rep: Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001
You can use apt-cache to search for package names. For example
Code:
apt-cache search smart
will deliver all packages that are related to smart. The output on my Debian machine is
Code:
smart-notifier - graphical hard disk health status notifier
smartmontools - control and monitor storage systems using S.M.A.R.T.
So you can see that the appropriate package-name is smartmontools.
Sometimes this doesn't help, in that case the apt-file tool may help. This tool is not installed by default, so you have to install and initialize it first:
Code:
apt-get install apt-file
apt-file update
If I now use the apt-file utility to search for restorecond I get this output:
Code:
tobi@server:~$ apt-file search restorecond
policycoreutils: /etc/selinux/restorecond.conf
policycoreutils: /usr/sbin/restorecond
policycoreutils: /usr/share/man/man8/restorecond.8.gz
So I can see that the package policycoreutils contains the file restorecond.

Last edited by TobiSGD; 05-07-2012 at 04:23 PM. Reason: fixed typos
 
  


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
E: Unable to locate package Apache while installing Apache. ft85 Linux - Newbie 9 04-03-2012 06:16 AM
[SOLVED] E: Unable to locate package nova-comm E: Unable to locate package python-psycopq2 mint12 Linux - Virtualization and Cloud 2 01-05-2012 12:07 PM
[SOLVED] Unable to locate Apt-Proxy Kenichi Kato Linux - Server 2 05-03-2011 03:06 AM
[SOLVED] E: Unable to locate package lamis0 Ubuntu 4 03-27-2011 06:33 AM
LXer: apt-file: Locate Missing Package Files LXer Syndicated Linux News 0 08-19-2010 05:30 PM


All times are GMT -5. The time now is 04:20 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration