Where are stored sources of compiled programs? [closed]
Clash Royale CLAN TAG#URR8PPP
up vote
-2
down vote
favorite
I want to find exact source code of compiled program in Linux/Unix systems.
for illustration:
computer:/ username$ whereis ping
/sbin/ping
And the task is to find the source code of /sbin/ping.
compiling source source-code
closed as too broad by muru, Jeff Schaller, thrig, Rui F Ribeiro, G-Man Feb 18 at 23:26
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
 |Â
show 2 more comments
up vote
-2
down vote
favorite
I want to find exact source code of compiled program in Linux/Unix systems.
for illustration:
computer:/ username$ whereis ping
/sbin/ping
And the task is to find the source code of /sbin/ping.
compiling source source-code
closed as too broad by muru, Jeff Schaller, thrig, Rui F Ribeiro, G-Man Feb 18 at 23:26
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
1
Which Linux distribution?
â muru
Feb 18 at 11:41
3
The sources of a compiled program is not necessarily anywhere on your computer. What Linux distribution are you using, or more importantly, what package manager are you using to install software?
â Kusalananda
Feb 18 at 11:42
@muru I rather want where can I find these informations for different distros.
â Július Marko
Feb 18 at 14:00
@Kusalananda Is package manager important if I'm talking about system command (ping)? I assume it should be on github. Let's say FreeBSD.
â Július Marko
Feb 18 at 14:01
2
Well, start from the distro's website then. Voting to close as too broad
â muru
Feb 18 at 14:04
 |Â
show 2 more comments
up vote
-2
down vote
favorite
up vote
-2
down vote
favorite
I want to find exact source code of compiled program in Linux/Unix systems.
for illustration:
computer:/ username$ whereis ping
/sbin/ping
And the task is to find the source code of /sbin/ping.
compiling source source-code
I want to find exact source code of compiled program in Linux/Unix systems.
for illustration:
computer:/ username$ whereis ping
/sbin/ping
And the task is to find the source code of /sbin/ping.
compiling source source-code
edited Feb 18 at 14:12
asked Feb 18 at 11:33
Július Marko
1075
1075
closed as too broad by muru, Jeff Schaller, thrig, Rui F Ribeiro, G-Man Feb 18 at 23:26
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
closed as too broad by muru, Jeff Schaller, thrig, Rui F Ribeiro, G-Man Feb 18 at 23:26
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
1
Which Linux distribution?
â muru
Feb 18 at 11:41
3
The sources of a compiled program is not necessarily anywhere on your computer. What Linux distribution are you using, or more importantly, what package manager are you using to install software?
â Kusalananda
Feb 18 at 11:42
@muru I rather want where can I find these informations for different distros.
â Július Marko
Feb 18 at 14:00
@Kusalananda Is package manager important if I'm talking about system command (ping)? I assume it should be on github. Let's say FreeBSD.
â Július Marko
Feb 18 at 14:01
2
Well, start from the distro's website then. Voting to close as too broad
â muru
Feb 18 at 14:04
 |Â
show 2 more comments
1
Which Linux distribution?
â muru
Feb 18 at 11:41
3
The sources of a compiled program is not necessarily anywhere on your computer. What Linux distribution are you using, or more importantly, what package manager are you using to install software?
â Kusalananda
Feb 18 at 11:42
@muru I rather want where can I find these informations for different distros.
â Július Marko
Feb 18 at 14:00
@Kusalananda Is package manager important if I'm talking about system command (ping)? I assume it should be on github. Let's say FreeBSD.
â Július Marko
Feb 18 at 14:01
2
Well, start from the distro's website then. Voting to close as too broad
â muru
Feb 18 at 14:04
1
1
Which Linux distribution?
â muru
Feb 18 at 11:41
Which Linux distribution?
â muru
Feb 18 at 11:41
3
3
The sources of a compiled program is not necessarily anywhere on your computer. What Linux distribution are you using, or more importantly, what package manager are you using to install software?
â Kusalananda
Feb 18 at 11:42
The sources of a compiled program is not necessarily anywhere on your computer. What Linux distribution are you using, or more importantly, what package manager are you using to install software?
â Kusalananda
Feb 18 at 11:42
@muru I rather want where can I find these informations for different distros.
â Július Marko
Feb 18 at 14:00
@muru I rather want where can I find these informations for different distros.
â Július Marko
Feb 18 at 14:00
@Kusalananda Is package manager important if I'm talking about system command (ping)? I assume it should be on github. Let's say FreeBSD.
â Július Marko
Feb 18 at 14:01
@Kusalananda Is package manager important if I'm talking about system command (ping)? I assume it should be on github. Let's say FreeBSD.
â Július Marko
Feb 18 at 14:01
2
2
Well, start from the distro's website then. Voting to close as too broad
â muru
Feb 18 at 14:04
Well, start from the distro's website then. Voting to close as too broad
â muru
Feb 18 at 14:04
 |Â
show 2 more comments
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
The source code of a compiled binary may not be available on your system.
On OpenBSD (which is not Linux), the source code is for the complete base system (including kernel and utilities like ping
) is available over CVS.
For a web-browsable OpenBSD repository, see https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/
The ping
sources is located in src/sbin/ping
.
The NetBSD project (again, not a Linux) has a browsable CVS repository at http://cvsweb.netbsd.org/bsdweb.cgi/src/
The source for ping
is located in src/sbin/ping
in that tree, as for OpenBSD.
The FreeBSD project (which is also not Linux) has a GitHub repository at https://github.com/freebsd/freebsd
The source code for ping
is located at sbin/ping
in that tree.
On these BSD system, the source of the base utilities and kernel will only be available on the system if a user has checked out the respective repositories.
(the Makefiles with the build instructions for) Third-party tool packages/ports are kept in a separate repository for all three of these operating systems, and the source code is usually fetched from the main distribution site of the tool in question if one decides to compile the tool oneself and not use a ready-made binary package/port.
See the documentation provided by the relevant Unix for how to go about using their package/port system.
For Linux utility source code, you would have to first figure out what package the utility comes from, and then (if possible) use the package manager software to fetch the source code for the package. Alternatively, find where the source code is fetch from by the package maintainers when they create a binary package. This would be different depending on what Linux and package manager software you are using.
For example, in Debian you can enable thedeb-src
entries in your/etc/apt/sources.list
file and pull the source withapt-get source packagename
â ivanivan
Feb 18 at 14:59
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
The source code of a compiled binary may not be available on your system.
On OpenBSD (which is not Linux), the source code is for the complete base system (including kernel and utilities like ping
) is available over CVS.
For a web-browsable OpenBSD repository, see https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/
The ping
sources is located in src/sbin/ping
.
The NetBSD project (again, not a Linux) has a browsable CVS repository at http://cvsweb.netbsd.org/bsdweb.cgi/src/
The source for ping
is located in src/sbin/ping
in that tree, as for OpenBSD.
The FreeBSD project (which is also not Linux) has a GitHub repository at https://github.com/freebsd/freebsd
The source code for ping
is located at sbin/ping
in that tree.
On these BSD system, the source of the base utilities and kernel will only be available on the system if a user has checked out the respective repositories.
(the Makefiles with the build instructions for) Third-party tool packages/ports are kept in a separate repository for all three of these operating systems, and the source code is usually fetched from the main distribution site of the tool in question if one decides to compile the tool oneself and not use a ready-made binary package/port.
See the documentation provided by the relevant Unix for how to go about using their package/port system.
For Linux utility source code, you would have to first figure out what package the utility comes from, and then (if possible) use the package manager software to fetch the source code for the package. Alternatively, find where the source code is fetch from by the package maintainers when they create a binary package. This would be different depending on what Linux and package manager software you are using.
For example, in Debian you can enable thedeb-src
entries in your/etc/apt/sources.list
file and pull the source withapt-get source packagename
â ivanivan
Feb 18 at 14:59
add a comment |Â
up vote
1
down vote
accepted
The source code of a compiled binary may not be available on your system.
On OpenBSD (which is not Linux), the source code is for the complete base system (including kernel and utilities like ping
) is available over CVS.
For a web-browsable OpenBSD repository, see https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/
The ping
sources is located in src/sbin/ping
.
The NetBSD project (again, not a Linux) has a browsable CVS repository at http://cvsweb.netbsd.org/bsdweb.cgi/src/
The source for ping
is located in src/sbin/ping
in that tree, as for OpenBSD.
The FreeBSD project (which is also not Linux) has a GitHub repository at https://github.com/freebsd/freebsd
The source code for ping
is located at sbin/ping
in that tree.
On these BSD system, the source of the base utilities and kernel will only be available on the system if a user has checked out the respective repositories.
(the Makefiles with the build instructions for) Third-party tool packages/ports are kept in a separate repository for all three of these operating systems, and the source code is usually fetched from the main distribution site of the tool in question if one decides to compile the tool oneself and not use a ready-made binary package/port.
See the documentation provided by the relevant Unix for how to go about using their package/port system.
For Linux utility source code, you would have to first figure out what package the utility comes from, and then (if possible) use the package manager software to fetch the source code for the package. Alternatively, find where the source code is fetch from by the package maintainers when they create a binary package. This would be different depending on what Linux and package manager software you are using.
For example, in Debian you can enable thedeb-src
entries in your/etc/apt/sources.list
file and pull the source withapt-get source packagename
â ivanivan
Feb 18 at 14:59
add a comment |Â
up vote
1
down vote
accepted
up vote
1
down vote
accepted
The source code of a compiled binary may not be available on your system.
On OpenBSD (which is not Linux), the source code is for the complete base system (including kernel and utilities like ping
) is available over CVS.
For a web-browsable OpenBSD repository, see https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/
The ping
sources is located in src/sbin/ping
.
The NetBSD project (again, not a Linux) has a browsable CVS repository at http://cvsweb.netbsd.org/bsdweb.cgi/src/
The source for ping
is located in src/sbin/ping
in that tree, as for OpenBSD.
The FreeBSD project (which is also not Linux) has a GitHub repository at https://github.com/freebsd/freebsd
The source code for ping
is located at sbin/ping
in that tree.
On these BSD system, the source of the base utilities and kernel will only be available on the system if a user has checked out the respective repositories.
(the Makefiles with the build instructions for) Third-party tool packages/ports are kept in a separate repository for all three of these operating systems, and the source code is usually fetched from the main distribution site of the tool in question if one decides to compile the tool oneself and not use a ready-made binary package/port.
See the documentation provided by the relevant Unix for how to go about using their package/port system.
For Linux utility source code, you would have to first figure out what package the utility comes from, and then (if possible) use the package manager software to fetch the source code for the package. Alternatively, find where the source code is fetch from by the package maintainers when they create a binary package. This would be different depending on what Linux and package manager software you are using.
The source code of a compiled binary may not be available on your system.
On OpenBSD (which is not Linux), the source code is for the complete base system (including kernel and utilities like ping
) is available over CVS.
For a web-browsable OpenBSD repository, see https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/
The ping
sources is located in src/sbin/ping
.
The NetBSD project (again, not a Linux) has a browsable CVS repository at http://cvsweb.netbsd.org/bsdweb.cgi/src/
The source for ping
is located in src/sbin/ping
in that tree, as for OpenBSD.
The FreeBSD project (which is also not Linux) has a GitHub repository at https://github.com/freebsd/freebsd
The source code for ping
is located at sbin/ping
in that tree.
On these BSD system, the source of the base utilities and kernel will only be available on the system if a user has checked out the respective repositories.
(the Makefiles with the build instructions for) Third-party tool packages/ports are kept in a separate repository for all three of these operating systems, and the source code is usually fetched from the main distribution site of the tool in question if one decides to compile the tool oneself and not use a ready-made binary package/port.
See the documentation provided by the relevant Unix for how to go about using their package/port system.
For Linux utility source code, you would have to first figure out what package the utility comes from, and then (if possible) use the package manager software to fetch the source code for the package. Alternatively, find where the source code is fetch from by the package maintainers when they create a binary package. This would be different depending on what Linux and package manager software you are using.
edited Feb 18 at 15:00
answered Feb 18 at 14:39
Kusalananda
103k13202318
103k13202318
For example, in Debian you can enable thedeb-src
entries in your/etc/apt/sources.list
file and pull the source withapt-get source packagename
â ivanivan
Feb 18 at 14:59
add a comment |Â
For example, in Debian you can enable thedeb-src
entries in your/etc/apt/sources.list
file and pull the source withapt-get source packagename
â ivanivan
Feb 18 at 14:59
For example, in Debian you can enable the
deb-src
entries in your /etc/apt/sources.list
file and pull the source with apt-get source packagename
â ivanivan
Feb 18 at 14:59
For example, in Debian you can enable the
deb-src
entries in your /etc/apt/sources.list
file and pull the source with apt-get source packagename
â ivanivan
Feb 18 at 14:59
add a comment |Â
1
Which Linux distribution?
â muru
Feb 18 at 11:41
3
The sources of a compiled program is not necessarily anywhere on your computer. What Linux distribution are you using, or more importantly, what package manager are you using to install software?
â Kusalananda
Feb 18 at 11:42
@muru I rather want where can I find these informations for different distros.
â Július Marko
Feb 18 at 14:00
@Kusalananda Is package manager important if I'm talking about system command (ping)? I assume it should be on github. Let's say FreeBSD.
â Július Marko
Feb 18 at 14:01
2
Well, start from the distro's website then. Voting to close as too broad
â muru
Feb 18 at 14:04