list all ppa repository ubuntu 1

list all ppa repository ubuntu

egrep -v '^#|^ *$' /etc/apt/sources.list /etc/apt/sources.list.d/*

Here is what the above code is Doing:
1. We’re using the apt-get command to update the list of packages available for download.
2. We’re using the apt-get command to upgrade the packages that are already installed.
3. We’re using the apt-get command to install the unattended-upgrades package.
4. We’re using the dpkg-reconfigure command to reconfigure the unattended-upgrades package.
5. We’re using the egrep command to print out the contents of the /etc/apt/sources.list and /etc/apt/sources.list.d/* files.

Similar Posts