aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-03-23 16:29:21 -0300
committerEuAndreh <eu@euandre.org>2023-03-23 16:29:21 -0300
commitfa6537934db8491f20eb3fdd39b38ea78c4c482b (patch)
tree927db4cd34db8b116622c379b8b5833adc491691 /src
parentMakefile: Add architecture to check target name (diff)
downloadpackage-repository-fa6537934db8491f20eb3fdd39b38ea78c4c482b.tar.gz
package-repository-fa6537934db8491f20eb3fdd39b38ea78c4c482b.tar.xz
Use manual echo to /etc/apt/sources.list over apt-add-repository
Diffstat (limited to 'src')
-rwxr-xr-xsrc/bin/paku.in9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/bin/paku.in b/src/bin/paku.in
index f914426..1bac0ba 100755
--- a/src/bin/paku.in
+++ b/src/bin/paku.in
@@ -664,11 +664,12 @@ sub emit_html() {
by adding its URL to
<code>/etc/apt/sources.list</code>:
</p>
- <pre><code>\$ sudo apt-add-repository 'deb $json->{'base-url'}/debian ./'</code></pre>
+ <pre><code>\$ echo 'deb $json->{'base-url'}/debian ./' |
+ sudo tee -a /etc/apt/sources.list
+ \$ sudo apt update</code></pre>
<p>
- <code>apt-add-repository</code> will already perform
- an <code>apt update</code>, so the packages from the
- new repository will already be available.
+ After that the packages from the new repository will
+ be available.
</p>
</article>
<article id="nix-instructions">