File: updatebase.MINT

package info (click to toggle)
fai 6.5.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,084 kB
  • sloc: sh: 6,774; perl: 5,665; makefile: 138
file content (26 lines) | stat: -rwxr-xr-x 675 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#! /bin/bash

# prepare Linuxmint package installation

target=/target
ctam

# remove packages from the Ubuntu base file, adjust sources.list
$ROOTCMD apt -y purge ubuntu-pro-client ubuntu-pro-client-l10n ubuntu-minimal
ainsl -v /etc/apt/sources.list "deb $mintmirror $mintdist main upstream import backport"

cat <<EOM > $target/etc/apt/preferences.d/official-package-repositories.pref
Package: *
Pin: release o=linuxmint,c=upstream
Pin-Priority: 700
EOM

cat <<EOM > $target/etc/apt/preferences.d/official-extra-repositories.pref
Package: *
Pin: origin "build.linuxmint.com"
Pin-Priority: 700
EOM

$ROOTCMD apt -y update
$ROOTCMD apt -y --reinstall install base-files
ctau