How to find program name(s) of an installed package?apt changelog for to-be installed packagesFind what package supplied a tool / application in Ubuntu 11.10Can I manage dpkg-installed package with apt-get?Half installed package nightmareReinstall all dependancies of a single packageHow to check if a virtual package is installed?Replace apt package with compiled versHow to find out how a program was removed?How to find exact program name of installed program using terminal?dpkg: error processing package sendmail-base
How can bays and straits be determined in a procedurally generated map?
Why are 150k or 200k jobs considered good when there are 300k+ births a month?
Is the month field really deprecated?
How can the DM most effectively choose 1 out of an odd number of players to be targeted by an attack or effect?
Set-theoretical foundations of Mathematics with only bounded quantifiers
Email Account under attack (really) - anything I can do?
whey we use polarized capacitor?
How do we improve the relationship with a client software team that performs poorly and is becoming less collaborative?
How to make payment on the internet without leaving a money trail?
The use of multiple foreign keys on same column in SQL Server
Download, install and reboot computer at night if needed
Why can't I see bouncing of a switch on an oscilloscope?
How to get the available space of $HOME as a variable in shell scripting?
Why CLRS example on residual networks does not follows its formula?
What exactly is the parasitic white layer that forms after iron parts are treated with ammonia?
"which" command doesn't work / path of Safari?
What do you call a Matrix-like slowdown and camera movement effect?
How old can references or sources in a thesis be?
Is there really no realistic way for a skeleton monster to move around without magic?
A newer friend of my brother's gave him a load of baseball cards that are supposedly extremely valuable. Is this a scam?
Do airline pilots ever risk not hearing communication directed to them specifically, from traffic controllers?
How do I create uniquely male characters?
Is it possible to make sharp wind that can cut stuff from afar?
Can I make popcorn with any corn?
How to find program name(s) of an installed package?
apt changelog for to-be installed packagesFind what package supplied a tool / application in Ubuntu 11.10Can I manage dpkg-installed package with apt-get?Half installed package nightmareReinstall all dependancies of a single packageHow to check if a virtual package is installed?Replace apt package with compiled versHow to find out how a program was removed?How to find exact program name of installed program using terminal?dpkg: error processing package sendmail-base
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
When I have installed a package using apt, is there a way to find out by which command(s) I can run the installed program(s)?
For instance, the package httpcode is not available as httpcode, and the package description (apt show httpcode) does not explain how to run it. How could I have found out that it’s run via hc from the command line?
There are two slightly hacky workarounds I found:
Assuming that programs are by default installed in
usr/bin, I ranls -ltc | head -n 10to find recenlty touched files there, and indeed I foundhc.Similarly to 1,
dpkg -L httpcodereturns a list of files created by installing the package, which also lists/usr/bin/hc.
Is there a better solution to this problem that doesn’t hinge upon the intuition of where the program might be stored on disk?
I also found that man httpcode does open the man page of the program, even though I called it with the package name as argument. Does this always work (if the program provides a manpage)?
apt package-management dpkg
add a comment |
When I have installed a package using apt, is there a way to find out by which command(s) I can run the installed program(s)?
For instance, the package httpcode is not available as httpcode, and the package description (apt show httpcode) does not explain how to run it. How could I have found out that it’s run via hc from the command line?
There are two slightly hacky workarounds I found:
Assuming that programs are by default installed in
usr/bin, I ranls -ltc | head -n 10to find recenlty touched files there, and indeed I foundhc.Similarly to 1,
dpkg -L httpcodereturns a list of files created by installing the package, which also lists/usr/bin/hc.
Is there a better solution to this problem that doesn’t hinge upon the intuition of where the program might be stored on disk?
I also found that man httpcode does open the man page of the program, even though I called it with the package name as argument. Does this always work (if the program provides a manpage)?
apt package-management dpkg
add a comment |
When I have installed a package using apt, is there a way to find out by which command(s) I can run the installed program(s)?
For instance, the package httpcode is not available as httpcode, and the package description (apt show httpcode) does not explain how to run it. How could I have found out that it’s run via hc from the command line?
There are two slightly hacky workarounds I found:
Assuming that programs are by default installed in
usr/bin, I ranls -ltc | head -n 10to find recenlty touched files there, and indeed I foundhc.Similarly to 1,
dpkg -L httpcodereturns a list of files created by installing the package, which also lists/usr/bin/hc.
Is there a better solution to this problem that doesn’t hinge upon the intuition of where the program might be stored on disk?
I also found that man httpcode does open the man page of the program, even though I called it with the package name as argument. Does this always work (if the program provides a manpage)?
apt package-management dpkg
When I have installed a package using apt, is there a way to find out by which command(s) I can run the installed program(s)?
For instance, the package httpcode is not available as httpcode, and the package description (apt show httpcode) does not explain how to run it. How could I have found out that it’s run via hc from the command line?
There are two slightly hacky workarounds I found:
Assuming that programs are by default installed in
usr/bin, I ranls -ltc | head -n 10to find recenlty touched files there, and indeed I foundhc.Similarly to 1,
dpkg -L httpcodereturns a list of files created by installing the package, which also lists/usr/bin/hc.
Is there a better solution to this problem that doesn’t hinge upon the intuition of where the program might be stored on disk?
I also found that man httpcode does open the man page of the program, even though I called it with the package name as argument. Does this always work (if the program provides a manpage)?
apt package-management dpkg
apt package-management dpkg
asked yesterday
bleistift2bleistift2
837
837
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
The locations of files (executables, man-pages and other stuff) should conform Filesystem Hierarchy Standard as a rule.
Personally I solve this problem with one of four methods:
It is known that executables are placed in the directories declared in
$PATHenvironment variable:
$ echo $PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/binSo one can list all package files with
dpkg --list(seeman dpkgfor details) and find files in/bin,/sbin,/usr/bin,/usr/sbin,/usr/gamesdirectories. So we can use the following command:$ dpkg -L httpcode | grep -E "/bin/|/sbin/|/usr/games/"
/usr/bin/hcSo we can see that
/usr/bin/hcbelongs to this package.List all man-pages:
$ dpkg -L httpcode | grep "/man/"
/usr/share/man/man1
/usr/share/man/man1/hc.1.gzSo we can see that we can use
man hc.For applications with GUI I run search for
*.desktopfiles.$ dpkg -L httpcode | grep ".desktop"
$In this particular case it will not return anything.
With some complicated proprietary (or bad-packaged) stuff this method transforms to reading
Execvariable in the*.desktopfile - here Telegram is an example:$ dpkg -L telegram | grep ".desktop"
/usr/share/applications/telegram.desktop
$ grep Exec $(dpkg -L telegram | grep ".desktop")
Exec=/opt/telegram/Telegram -- %uAbout
Execsee Desktop Entry Specification.For not installed package one can visit https://packages.ubuntu.com and use Search package directories here (for all releases or for selected release), then click on list of files link in the right column of the table:

and one will get the file list:

This list may interpreted manually or by using searchbar in the browser.
Is your first solution always feasible, i.e. do package executables always go into somebindirectory?
– bleistift2
yesterday
1
Yes, good-packaged application should conform Filesystem Hierarchy Standard, so its executables should be placed in/bin,/sbin,/usr/bin,/usr/sbin.
– N0rbert
yesterday
2
Your executable has to be in one of the directories of the PATH, or it will not be found typing just the name of the executable in the terminal.
– vanadium
yesterday
@vanadium, you are right about$PATH. Edited answer to include this approach.
– N0rbert
yesterday
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1131675%2fhow-to-find-program-names-of-an-installed-package%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
The locations of files (executables, man-pages and other stuff) should conform Filesystem Hierarchy Standard as a rule.
Personally I solve this problem with one of four methods:
It is known that executables are placed in the directories declared in
$PATHenvironment variable:
$ echo $PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/binSo one can list all package files with
dpkg --list(seeman dpkgfor details) and find files in/bin,/sbin,/usr/bin,/usr/sbin,/usr/gamesdirectories. So we can use the following command:$ dpkg -L httpcode | grep -E "/bin/|/sbin/|/usr/games/"
/usr/bin/hcSo we can see that
/usr/bin/hcbelongs to this package.List all man-pages:
$ dpkg -L httpcode | grep "/man/"
/usr/share/man/man1
/usr/share/man/man1/hc.1.gzSo we can see that we can use
man hc.For applications with GUI I run search for
*.desktopfiles.$ dpkg -L httpcode | grep ".desktop"
$In this particular case it will not return anything.
With some complicated proprietary (or bad-packaged) stuff this method transforms to reading
Execvariable in the*.desktopfile - here Telegram is an example:$ dpkg -L telegram | grep ".desktop"
/usr/share/applications/telegram.desktop
$ grep Exec $(dpkg -L telegram | grep ".desktop")
Exec=/opt/telegram/Telegram -- %uAbout
Execsee Desktop Entry Specification.For not installed package one can visit https://packages.ubuntu.com and use Search package directories here (for all releases or for selected release), then click on list of files link in the right column of the table:

and one will get the file list:

This list may interpreted manually or by using searchbar in the browser.
Is your first solution always feasible, i.e. do package executables always go into somebindirectory?
– bleistift2
yesterday
1
Yes, good-packaged application should conform Filesystem Hierarchy Standard, so its executables should be placed in/bin,/sbin,/usr/bin,/usr/sbin.
– N0rbert
yesterday
2
Your executable has to be in one of the directories of the PATH, or it will not be found typing just the name of the executable in the terminal.
– vanadium
yesterday
@vanadium, you are right about$PATH. Edited answer to include this approach.
– N0rbert
yesterday
add a comment |
The locations of files (executables, man-pages and other stuff) should conform Filesystem Hierarchy Standard as a rule.
Personally I solve this problem with one of four methods:
It is known that executables are placed in the directories declared in
$PATHenvironment variable:
$ echo $PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/binSo one can list all package files with
dpkg --list(seeman dpkgfor details) and find files in/bin,/sbin,/usr/bin,/usr/sbin,/usr/gamesdirectories. So we can use the following command:$ dpkg -L httpcode | grep -E "/bin/|/sbin/|/usr/games/"
/usr/bin/hcSo we can see that
/usr/bin/hcbelongs to this package.List all man-pages:
$ dpkg -L httpcode | grep "/man/"
/usr/share/man/man1
/usr/share/man/man1/hc.1.gzSo we can see that we can use
man hc.For applications with GUI I run search for
*.desktopfiles.$ dpkg -L httpcode | grep ".desktop"
$In this particular case it will not return anything.
With some complicated proprietary (or bad-packaged) stuff this method transforms to reading
Execvariable in the*.desktopfile - here Telegram is an example:$ dpkg -L telegram | grep ".desktop"
/usr/share/applications/telegram.desktop
$ grep Exec $(dpkg -L telegram | grep ".desktop")
Exec=/opt/telegram/Telegram -- %uAbout
Execsee Desktop Entry Specification.For not installed package one can visit https://packages.ubuntu.com and use Search package directories here (for all releases or for selected release), then click on list of files link in the right column of the table:

and one will get the file list:

This list may interpreted manually or by using searchbar in the browser.
Is your first solution always feasible, i.e. do package executables always go into somebindirectory?
– bleistift2
yesterday
1
Yes, good-packaged application should conform Filesystem Hierarchy Standard, so its executables should be placed in/bin,/sbin,/usr/bin,/usr/sbin.
– N0rbert
yesterday
2
Your executable has to be in one of the directories of the PATH, or it will not be found typing just the name of the executable in the terminal.
– vanadium
yesterday
@vanadium, you are right about$PATH. Edited answer to include this approach.
– N0rbert
yesterday
add a comment |
The locations of files (executables, man-pages and other stuff) should conform Filesystem Hierarchy Standard as a rule.
Personally I solve this problem with one of four methods:
It is known that executables are placed in the directories declared in
$PATHenvironment variable:
$ echo $PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/binSo one can list all package files with
dpkg --list(seeman dpkgfor details) and find files in/bin,/sbin,/usr/bin,/usr/sbin,/usr/gamesdirectories. So we can use the following command:$ dpkg -L httpcode | grep -E "/bin/|/sbin/|/usr/games/"
/usr/bin/hcSo we can see that
/usr/bin/hcbelongs to this package.List all man-pages:
$ dpkg -L httpcode | grep "/man/"
/usr/share/man/man1
/usr/share/man/man1/hc.1.gzSo we can see that we can use
man hc.For applications with GUI I run search for
*.desktopfiles.$ dpkg -L httpcode | grep ".desktop"
$In this particular case it will not return anything.
With some complicated proprietary (or bad-packaged) stuff this method transforms to reading
Execvariable in the*.desktopfile - here Telegram is an example:$ dpkg -L telegram | grep ".desktop"
/usr/share/applications/telegram.desktop
$ grep Exec $(dpkg -L telegram | grep ".desktop")
Exec=/opt/telegram/Telegram -- %uAbout
Execsee Desktop Entry Specification.For not installed package one can visit https://packages.ubuntu.com and use Search package directories here (for all releases or for selected release), then click on list of files link in the right column of the table:

and one will get the file list:

This list may interpreted manually or by using searchbar in the browser.
The locations of files (executables, man-pages and other stuff) should conform Filesystem Hierarchy Standard as a rule.
Personally I solve this problem with one of four methods:
It is known that executables are placed in the directories declared in
$PATHenvironment variable:
$ echo $PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/binSo one can list all package files with
dpkg --list(seeman dpkgfor details) and find files in/bin,/sbin,/usr/bin,/usr/sbin,/usr/gamesdirectories. So we can use the following command:$ dpkg -L httpcode | grep -E "/bin/|/sbin/|/usr/games/"
/usr/bin/hcSo we can see that
/usr/bin/hcbelongs to this package.List all man-pages:
$ dpkg -L httpcode | grep "/man/"
/usr/share/man/man1
/usr/share/man/man1/hc.1.gzSo we can see that we can use
man hc.For applications with GUI I run search for
*.desktopfiles.$ dpkg -L httpcode | grep ".desktop"
$In this particular case it will not return anything.
With some complicated proprietary (or bad-packaged) stuff this method transforms to reading
Execvariable in the*.desktopfile - here Telegram is an example:$ dpkg -L telegram | grep ".desktop"
/usr/share/applications/telegram.desktop
$ grep Exec $(dpkg -L telegram | grep ".desktop")
Exec=/opt/telegram/Telegram -- %uAbout
Execsee Desktop Entry Specification.For not installed package one can visit https://packages.ubuntu.com and use Search package directories here (for all releases or for selected release), then click on list of files link in the right column of the table:

and one will get the file list:

This list may interpreted manually or by using searchbar in the browser.
edited yesterday
answered yesterday
N0rbertN0rbert
25.1k853118
25.1k853118
Is your first solution always feasible, i.e. do package executables always go into somebindirectory?
– bleistift2
yesterday
1
Yes, good-packaged application should conform Filesystem Hierarchy Standard, so its executables should be placed in/bin,/sbin,/usr/bin,/usr/sbin.
– N0rbert
yesterday
2
Your executable has to be in one of the directories of the PATH, or it will not be found typing just the name of the executable in the terminal.
– vanadium
yesterday
@vanadium, you are right about$PATH. Edited answer to include this approach.
– N0rbert
yesterday
add a comment |
Is your first solution always feasible, i.e. do package executables always go into somebindirectory?
– bleistift2
yesterday
1
Yes, good-packaged application should conform Filesystem Hierarchy Standard, so its executables should be placed in/bin,/sbin,/usr/bin,/usr/sbin.
– N0rbert
yesterday
2
Your executable has to be in one of the directories of the PATH, or it will not be found typing just the name of the executable in the terminal.
– vanadium
yesterday
@vanadium, you are right about$PATH. Edited answer to include this approach.
– N0rbert
yesterday
Is your first solution always feasible, i.e. do package executables always go into some
bin directory?– bleistift2
yesterday
Is your first solution always feasible, i.e. do package executables always go into some
bin directory?– bleistift2
yesterday
1
1
Yes, good-packaged application should conform Filesystem Hierarchy Standard, so its executables should be placed in
/bin, /sbin, /usr/bin, /usr/sbin.– N0rbert
yesterday
Yes, good-packaged application should conform Filesystem Hierarchy Standard, so its executables should be placed in
/bin, /sbin, /usr/bin, /usr/sbin.– N0rbert
yesterday
2
2
Your executable has to be in one of the directories of the PATH, or it will not be found typing just the name of the executable in the terminal.
– vanadium
yesterday
Your executable has to be in one of the directories of the PATH, or it will not be found typing just the name of the executable in the terminal.
– vanadium
yesterday
@vanadium, you are right about
$PATH. Edited answer to include this approach.– N0rbert
yesterday
@vanadium, you are right about
$PATH. Edited answer to include this approach.– N0rbert
yesterday
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1131675%2fhow-to-find-program-names-of-an-installed-package%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown