User Tools

Site Tools


source.list

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

source.list [2024/02/28 10:17] – angelegt domelesource.list [2024/02/28 10:19] (current) – external edit 127.0.0.1
Line 1: Line 1:
-# Howto Replace the distribution +# Howto Replace distribtion a to b in the source.list with sed
 <code bash> <code bash>
-  OLDDISTRI=bullseye +OLDDISTRI=bullseye 
-  NEWDISTRI=bookworm +NEWDISTRI=bookworm 
-  sed -i 's/\$OLDDISTRI/$NEWDISTRI/gi' /etc/apt/sources.list.d/*.list +sed -i 's/\$OLDDISTRI/$NEWDISTRI/gi' /etc/apt/sources.list.d/*.list 
-  sed -i 's/\%OLDDISTRI/$NEWDISTRI/gi' /etc/apt/*.list+sed -i 's/\%OLDDISTRI/$NEWDISTRI/gi' /etc/apt/*.list
 </code> </code>
source.list.1709115427.txt.gz · Last modified: by domele