etc/apt/sources.list: remove README & scripts

They don't reflect what I am doing in reality and I think they possibly
encouraged bad practices, so it's better that they don't exist here.
This commit is contained in:
Aminda Suomalainen 2018-11-22 19:14:42 +02:00
parent 95660cd6ac
commit 7983975ba8
No known key found for this signature in database
GPG Key ID: 0C207F07B2F32B67
3 changed files with 0 additions and 75 deletions

View File

@ -1,35 +0,0 @@
sources.list files for Ubuntu and Debian
========================================
The files have been named so they are easily to fetch with script,
`lsb_release -sr` returns release e.g. `14.04` or `testing` and
`lsb_release -rc` returns codename e.g. `jessie`.
`mirrors.ubuntu.com/mirrors.txt` and `deb.debian.org` are used so
the files work everywhere and the nearest mirrors are always used no matter
where you are.
Which script to use?
--------------------
* `install` for Ubuntu and Debian testing/unstable.
* If you run `ìnstall` on Debian Stable, sources.list will say
`stable` and when new Debian becomes stable apt wants to
upgrade to it directly and that can be dangerous.
* `install.debian` for not-rolling Debian.
Usage
-----
1. Become root with `sudo su -`
2. Download the script using appropiate distribution and curl **or** wget
depending on which you have installed:
* Ubuntu/Debian testing/unstable:
* `curl -L http://git.io/vqhtJ > sources.list.install`
* `wget http://git.io/vqhtJ -O sources.list.install`
* Debian
* `curl -L http://git.io/vqhtF > sources.list.install`
* `wget http://git.io/vqhtF -O sources.list.install`
3. `chmod +x sources.list.install`
4. `./sources.list.install`
5. *optionally* `rm sources.list.install`

View File

@ -1,20 +0,0 @@
#!/usr/bin/env bash
export RELEASE=$(lsb_release -sr)
export DOWNLOAD="https://raw.githubusercontent.com/Mikaela/shell-things/master/etc/apt/sources.list/$RELEASE"
echo "I am now changing directory to /etc/apt/."
echo ""
cd /etc/apt/
echo "I will now backup sources.list to sources.list.bak ."
echo ""
cp /etc/apt/sources.list /etc/apt/sources.list.bak
echo "I will now download the sources.list file from https://raw.githubusercontent.com/Mikaela/shell-things/master/etc/apt/sources.list/$RELEASE and save it as /etc/apt/sources.list ."
echo ""
echo "" > /etc/apt/sources.list
\wget $DOWNLOAD -O /etc/apt/sources.list
echo ""
echo "The new sources.list file should now be installed."
echo ""
echo "Finally, I will now run 'apt-get -y update' so the new sources.list is used."
echo ""
apt-get update
echo "I have now finished everything that I was supposed to do."

View File

@ -1,20 +0,0 @@
#!/usr/bin/env bash
export RELEASE=$(lsb_release -sc)
export DOWNLOAD="https://raw.githubusercontent.com/Mikaela/shell-things/master/etc/apt/sources.list/$RELEASE"
echo "I am now changing directory to /etc/apt/."
echo ""
cd /etc/apt/
echo "I will now backup sources.list to sources.list.bak ."
echo ""
cp /etc/apt/sources.list /etc/apt/sources.list.bak
echo "I will now download the sources.list file from https://raw.githubusercontent.com/Mikaela/shell-things/master/etc/apt/sources.list/$RELEASE and save it as /etc/apt/sources.list ."
echo ""
echo "" > /etc/apt/sources.list
\wget $DOWNLOAD -O /etc/apt/sources.list
echo ""
echo "The new sources.list file should now be installed."
echo ""
echo "Finally, I will now run 'apt-get -y update' so the new sources.list is used."
echo ""
apt-get update
echo "I have now finished everything that I was supposed to do."