5
rated 0 times
[
5]
[
0]
/ answers: 1 / hits: 4961
/ 2 Years ago, thu, may 12, 2022, 7:01:48
I want to write a shell script that will add an apt repository.
I know that I can do it using sudo add-apt-repository -y <repo>
.
My question is can I do it only if the repository was not added already, something like:
if repo was not added yet:
sudo add-apt-repository -y <repo>
sudo apt-get update
Thanks
More From » apt