Questions tagged [source]
Everything that includes the source code of Unix programs for example compiling, installing or how to retrieve the code for studying.
359 questions
0
votes
1
answer
93
views
How to wrap source command in tcsh
I need a solution only for tcsh.
Say I have a source file that sources other files which in their turn can source other files. My goal is to track which files were eventually sourced. One way I can do ...
2
votes
1
answer
218
views
Is there a default or recommended directory to store source files ('configure', 'Makefile', etc) of *user* installs?
Suppose I have downloaded the source of some software I want to install just for myself, not system-wide; say Emacs or whatever. Typically the source is downloaded zipped, then it's unzipped in some ...
1
vote
1
answer
83
views
Can you use debuild to only apply patches to source and then exit?
I am trying to build gcc-6 source package on Raspbian stretch; so I do:
apt source gcc-6
cd gcc-6-6.3.0/debian
debuild -b -uc -us
The debuild command starts the full build. Since the build crashes on ...
4
votes
1
answer
317
views
How do I "go back" after installing a locally built package
I have looked around on instruction on how to download debian source package, build them and then installing the resultin deb-file(s), but the one I feel is missing is instruction on how to reverse it ...
0
votes
1
answer
308
views
How to get a copy of libdevmapper 1.02.34 or later?
I am trying to update GRUB 2.06 to 2.12 on an Ubuntu 22.04.4 LTS machine, following the instructions in the INSTALL text file included in the tarball (and at the bottom of the post). Reading through ...
0
votes
0
answers
281
views
Unexpected syntax error in VERSION file when building gettext
I am trying to build the gettext package from source.
When running make I receive an error:
make[5]: Entering directory '/source/gettext-0.22/gettext-tools/libgettextpo'
[..........]
libtool: link: ...
6
votes
3
answers
1k
views
How can I temporarily set $PATH and . (source) a file?
Consider this. IFS is set only in the execution of read.
IFS='' read -r REPLY
However, if I do similar with . (source), the variable will be assigned and changed even after the execution of the line ...
6
votes
4
answers
24k
views
If I have two versions of python3 installed on my machine (ie: 3.11.2 and 3.12), how do I set the default version to use when running python scripts?
I installed the earlier version (3.11.2) normally using apt package manager and the later version (3.12) manually from source. When I execute python scripts like so:
./python_script.py
The script ...
1
vote
1
answer
134
views
Changing yum source through Gnome GUI
This might be a silly question, but it puzzles me. I am using Rocky linux version 9.2. I wonder if there is a way to change the yum install source through gnome gui? that is, without using command ...
1
vote
1
answer
83
views
Installing sile from source fails
I am trying to install sile. A Debian package is not provided yet so I decided to build from source. Manual
Install Lua
$ curl -R -O http://www.lua.org/ftp/lua-5.4.6.tar.gz
$ tar -xf lua-5.4.6.tar....
0
votes
1
answer
187
views
Is there a way to compile KNOPPIX from source?
Instead of downloading the ISO, is there a way to download all the source packages and compile it locally?
I came across the following URL https://knopper.net/knoppix-sources/ and would like to know ...
0
votes
1
answer
212
views
adding a Debian repository: what are the pros and cons?
Looking for software, including less free, proprietary style e.g. visual studio code, github-cli, spotify:
What are the downsides and upsides of adding or configuring a Debian repository?
Debian wiki ...
0
votes
1
answer
55
views
Decanting code in $HOME/.bashrc into a function
I have the following code fragment in my $HOME/.bashrc file:
export RED='\e[0;31m'
export GREEN='\e[0;32m'
export YELLOW='\e[0;33m'
export BLUE='\e[0;34m'
export MAGENTA='\e[0;35m'
export CYAN='\e[0;...
2
votes
1
answer
520
views
Load variables with source with a single line scope
In bash and other shells, I can make same variables have "line scope" by defining it just before a command.
CXX=clang++ ./script.bash
Which I prefer over
export CXX=clang++
./script.bash
...
0
votes
1
answer
308
views
change the kernel version OS [closed]
It is possible to modify the linux kernel,
I have tried to search but I can't find anything related in the source code
I want to modify this line GNU/Linux
I have noticed that there are kernels with ...
1
vote
1
answer
620
views
How would a Linux driver call UEFI firmware presented functionality?
For work I'm learning more about computer architecture and I just finished learning about ACPI. From talking to some other engineers my understanding for something like NVMe is that the OEM is going ...
2
votes
2
answers
2k
views
Open new terminal with environment specified by source command
I want to run a command that opens a terminal and sources into it a set of variables.
How can I do this? I'm using xfce4-terminal. It has a command-line arg "--command", to execute commands ...
0
votes
1
answer
93
views
Differences between using source and ./ a .sh file
I know the above topic has been discussed before
source a .sh file and you retain the environmental variables after you are done with the sh file
while ./ a .sh file and you lose the environmental ...
0
votes
0
answers
74
views
How to patch source code tree from within the dir to be modified?
A source code tree contains a modified dnsmasq-2.80test4 source (and git files).
Now I'd like to apply the newest 2.86 dnsmasq source code to that modified 2.80test4 using diff and patch, while ...
10
votes
2
answers
2k
views
Source of passwd error messages
I am testing if the passwd command could run if the setuid bit is disabled. I disabled the setuid by running the following command:
chmod 0554 /bin/passwd
After doing so, I tested if the passwd ...
3
votes
1
answer
994
views
Cannot source file using find, fzf, and xargs
I am trying to use fzf to select and activate different virtual environments. However, I am receiving the follow error:
xargs: source: No such file or directory
My command comprises three parts: find |...
1
vote
1
answer
60
views
How to verify that source code does / does not provide driver for Apple USB modem?
Source Code: https://unix.stackexchange.com/a/698474/182280
The goal is to verify that the source code has the driver to support an Apple USB Faxmodem MA034Z/A. What are the keywords or phrases to ...
0
votes
2
answers
305
views
Installing a linux software package from source
is it possible to install a package from source? For example whether debian or opensuse, would it be possible to install an existing package say nginx from source?
The reason is that i want to try ...
4
votes
1
answer
35k
views
Debian: The repository CDROM does not have a Release file
I have just finished installing Debian on my laptop; I had to add manually the drivers for my WiFi card after the installation, I simply installed them via sudo apt ./name.deb, where name.deb is a ....
0
votes
1
answer
225
views
Calling a function from terminal without export from sources file [duplicate]
Have added a number of functions which I source from my .bashrc. For instance, I use
export -f calc
I also have another function usage_calc where I comment out the export call
# export -f usage_calc
...