How can I get a list of all repositories and PPAs from the command line into an install script?


Did you try putting "how to list repositories in opensuse from the command line" into Google??? Amazingly, the


is from openSUSE's site.

...or you could try reading the man page on the zypper command, paying particular attention to the "repos" or "lr" flags.


Treat WHAT? What are you asking? Repositories for 12.3 are very obviously

FOR 12.3

, not 13.x You don't mix and match....not for openSUSE or any version of Linux



Again, repos for 12.x


13.x...Fedora 18 repositories won't work correctly with 19....Debian 6 won't work well with Debian 7. This is still no different, as I said in my first reply.

Also, there IS NO openSUSE 13.2...13.1 is the latest, and from what I can see, 13.2 isn't even out in Alpha yet. As far as which method is best, this has been asked and answered on...

0 0

Question: I configured so many third-party repositories and PPAs on my Ubuntu system that I lost their count. How can I get a list of all repositories and PPAs configured on my Ubuntu?

To view all available repositories and PPAs configured on Ubuntu, you can use apt-cache command. This command is typically used to query local APT package cache to obtain various package/repository related meta data.

In particular, used with policy option, apt-cache command retrieves priorities associated with each repository resource. From its output, you can infer a list of all available repositories and PPAs.

For example:

$ apt-cache policy

The above output shows a list of repository sources and their priorities (first column). This output lists duplicate sources (e.g., for 32-bit and 64-bit packages).

To discount the duplicates and get a more human-readable list of repositories, you can refine the above output as follows.

$ apt-cache...

0 0

This page describes how to manage software repositories from the command line. (GUI tools are also available: Managing Repositories in Ubuntu or Kubuntu).

If you are using a minimal install or server install you will need to be familiar with a terminal based text editor like nano. If you are using a GUI install you can use Nano or GEdit.

The Basics

Ubuntu uses apt for package management. Apt stores a list of repositories or software channels in the file


and in any file with the suffix .list under the directory


See man sources.list for more about this storage mechanism.

By editing these files from the command line, we can add, remove, or temporarily disable software repositories.

Note: It's always a good idea to backup a configuration file like sources.list before you edit it. To do so, issue the following command:

sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup...
0 0

I've already seen this question:

How to list all the packages which are installed from PPAs?

It only works for packages installed from PPAs where the PPA repository is still added to the system.

Is there a way to get the same kind of list but including all packages from all PPA repositories that are current added or have been added in the past?

Other Tips. I am trying to copy a folder into the user/share/themes folder on Ubuntu 14.04, and it's telling me I cannot do this because I am not "owner". So I right-clicked the usr/share/themes folder > Properties > Permissions tab and tried to change the permissions but they're all greyed-out/disabled. So then I opened up Terminal, entered groupmod TAB TAB TAB > sudo adduser jase root to try and get higher permissions or something - and it worked. I verified that I added myself as root by id jase. But that still didn't fix the problem. I still can't copy folders or files to usr/share/themes folder. How can I...

0 0


To get a list of packages available in a PPA / repository enabled on your system (if the repository is disabled or not added on your system, it won't show up here), firstly install Synaptic if you haven't already:

sudo apt-get install synaptic

(or install

Synaptic GTK3


Then open Synaptic, select "Origin" on the bottom left, then select a PPA or repository on the left and it should list all packages in that PPA / repository for your Ubuntu version, both installed and not installed:

In the latest Synaptic built with GTK3, there are two entries for each PPA here, one that uses "/now" at the end, which displays the packages you've installed from a repository and another one which displays all the packages available in that repository.

Important: if the exact same package (including the package version) exists in two or more PPAs / repositories, it will only be listed for one repository entry in Synaptic. That's why I've...

0 0

Ubuntu has a lot of GUI-based methods for installing applications, but they take some time to search and find. Since the keyboard is usually faster than the mouse, managing your software via the command-line can be a real time-saver.


Linux manages software through packages, individual units of software that contain user interfaces, modules, and libraries. Most applications link several co-dependent packages together, and still others allow you to choose which packages to install and which to leave out at your own discretion. This can get confusing, so there’s a package manager at your disposal to help

Each Linux distribution has its own package management system. For our own near and dear Ubuntu, it’s the Advanced Packaging Tool. It has a family of commands that allows you to add repositories; search for, install, and remove packages; and even simulate upgrades and such. The commands are fairly easy to remember and use, so you’ll be managing your...

0 0
0 0

Personal Package Archives allow any person in the Ubuntu community who has committed to observe the Ubuntu Code of Conduct to upload Ubuntu source packages to be built and published as an apt repository by Launchpad. Software from Launchpad’s Personal Package Archive (PPA) requires a GnuPG (GPG) key so your system can verify that it’s getting the packages from the correct source and that the packages have not been interfered with since they were built. GnuPG is GNU’s tool for secure communication and data storage.

Important: The contents of Personal Package Archives are not checked or monitored. You install software from them at your own risk.

Remove a PPA

You can use the Muon Discover to add a PPA:

How-to: Open the Launchpad PPA overview page in your browser. Look for the location of the PPA in the ‘Adding this PPA to your system’ section.

Open Muon Discover. Select Sources, Configure Software Sources in the window. Enter your administrative...

0 0

I am back with some more scripting fun.

I have been working on configuring my new debian machine and found one utility very lacking in debian and that was add-apt-repository.
So i set down and took my time out and finally i am able to mix match this simple script.

Disclaimer: I know adding ppa can have adverse effects on debian machines

At this point the work that this script performs is

add the repository of the ppa. (here i am using lucid as the distribution of choice, coz i am using squeeze as my debian version) add the gpg key to the keyring.


This script is at this pointed tested only on one machine. debian Squeeze (mint Flavoured.)

File :

Steps to install this.

Download file

$ wget

2. Save this file in /usr/sbin/

$ cp /usr/sbin/add-apt-repository

3. Change...

0 0

I've been a professional UNIX & Linux Systems Admin/Engineer for about 10 years, using Linux as my sole home & business OS for that time.

I started with Debian in 1994 or 1995, then to Arch, Fedora, Red Hat/CentOS (I'm a RHCT & RHCSA), Fuduntu and now back to Debian via LMDE/MATE.

About the only thing I use a GUI for is a terminal manager, web browser/media player & file manager.

Since Linux administration is my "day job", the command line is usually my only option and I must know it well.

Trying to run a GUI over a 115200 baud (or slower!) SoL IPMI connection is not...viable.

I flirted with Gentoo and gave it up when it once took all weekend to "emerge world".
I do not like the way Ubuntu breaks upstream compatibility with Debian and this PPA thing is yet another annoyance.

I imagine I'll be re-installing LMDE before the weekend is over, but for now I'll play with LM15 some...

0 0


Full page | eBook Version

Add Extra Repositories

Software packages and programs are freely available for download at multiple online sites with standardized structures, called repositories. There are repositories officially sanctioned and monitored by the Kubuntu/Ubuntu developer community, while other repositories are independently provided, without official sanction or supervision (and should be used with caution). Additional information is available from the Ubuntu Repository Guide.

Types of Repositories

There are four major package repository types in Ubuntu: main - Supported by Canonical. This is the major part of the distribution. restricted - Software not licensed under the GPL (or similar software license), but supported by Canonical. universe - Software licensed under the GPL (or similar license) and supported by users. multiverse - Software not licensed under the GPL (or similar license), but supported by users. ...
0 0
0 0
Install Deluge Removing FAQ

Install Deluge

Software Centre:



sudo apt-get install deluge

Although Deluge is included in the official Ubuntu repositories it may be out of date. To ensure you are using the latest version use the PPA Repository, see the steps below.

Deluge PPA Repository

The Deluge PPA contains the latest Deluge releases for Ubuntu.

sudo add-apt-repository ppa:deluge-team/ppa sudo apt-get update sudo apt-get install deluge


sudo apt-get remove deluge


How do i fix 'add-apt-repository: command not found'?

Install add-apt-repository:

sudo apt-get install python-software-properties

for Ubuntu 12.10, to install add-apt-repository:

sudo apt-get install...
0 0

I am surprised that the simplest but most effective way to get all enabled binary software sources together with the file they're specified in hasn't been posted yet:

grep -r --include '*.list' '^deb ' /etc/apt/sources.list /etc/apt/sources.list.d/

From all processed files, this will print every line starting with deb. This excludes commented lines as well as deb-src lines to enable source code repositories.

It searches really only all *.list files that will be parsed by apt, but e.g. no * files used for backup or others with illegal names.

If you want a shorter but possibly only in 99.9% of all cases correct output that may search too much files (includes all /etc/apt/sources.list* files and directories, not only /etc/apt/sources.list and `/etc/apt/sources.list.d/*), you could also use this:

grep -r --include '*.list' '^deb ' /etc/apt/sources.list*

Unless there are files that shouldn't be there, the output will be the same.

An example...

0 0

Some people might prefer to add and remove repositories via a GUI. As of Ubuntu 10.10, this requires a bit of extra work. An explanation is available on the wiki. In order to try and have all answers for this question available in one place, I will try and summarize the important details here. Be sure to check the wiki (especially once a new version of Ubuntu is released) to ensure that this process is still valid.

First, you will want to re-enable 'Software Sources' in the System->Administration menu. Right click on the Applications/Places/System menu and click 'Edit Menus'.

This will open a window, scroll down and click on 'Administration'. Check the box next to 'Software Sources' and then click the 'Close' button.

Go to System->Administration and you should see 'Software Sources' in the menu.

In the window that opens, click on the 'Other Software' tab at the top.

You should see all of the repositories that you...

0 0

Run the below command to see all the installed applications,

ls /usr/share/applications | awk -F '.desktop' ' { print $1}' -

If you want to get the list of all installed applications, then run the below command,

ls /usr/share/applications | awk -F '.desktop' ' { print $1}' - > ~/Desktop/applications.txt

It will stores the above command output to applications.txt file inside your ~/Desktop directory.


Also run the below command on terminal to list the installed applications,

find /usr/share/applications -maxdepth 1 -type f -exec basename {} .desktop \; | sort

To get the list in text file, run the below command

find /usr/share/applications -maxdepth 1 -type f -exec basename {} .desktop \; | sort > ~/Desktop/applications.txt

Desktop entries for all the installed applications are stored inside /usr/share/applications directory, where file names are in the format of application-name.desktop.Removing the .desktop part from the file names will...

0 0

Help out this community wiki - add up-to-date solutions.

Using dpkg, xargs, & apt-get

This command should accomplish the creation of a text file containing installed packages:

dpkg -l | awk '{print $2}' > package_list.txt

To accomplish the bulk installation of the listed packages you'll need to edit 'package_list.txt'. Remove the weird lines at the top of the file using a text editor. You can then use this command to install packages from the created file using:

xargs < package_list.txt apt-get install -y

Using apt-cache, xargs, & apt-get

Only use this method if you want all current packages to be installed using the list (which includes automatically installed, etc).

Output the response of 'apt-cache pkgnames' to a file we'll simply name "package_list.txt". You can accomplish this with:

apt-cache pkgnames > package_list.txt

Then when you want to install packages from "package_list.txt" you would use this command:

0 0

Sorry, penguin lovers — if you thought that 2015, in the heinous wake of Windows 8, would finally be the year of desktop Linux, you were sadly mistaken. Microsoft is trying its best to make make amends with Windows 10, to ensure it’s the dream OS for billions of people around the world who use a desktop PC with a mouse and keyboard — and, as a result, this means Microsoft is going to ship Windows 10 with a package manager. Yes, in Windows 10 you can open up a command line shell and install VLC or Firefox or thousands of other packages by typing in a single command.

If you’ve ever ventured into the dark and mysterious land of Linutopia, where Ubutologists and Debianites reign, you will have noticed that one of the things that Linux users are most proud of is package management. While Windows and Mac users have to run graphical installers — you know, where you hit Next a few times and try to avoid installing bundled crapware — Linux users can just open up a command line and...

0 0
EDIT: I have not been around in a long time, but it appears grub can still give people headaches I notice people are still referring to this guide now and then, so I wanted to post a link to a grub2 guide. There are differences so you may want to check there as well Glad to see Ubuntu is still going strong Take care.

This will restore grub if you already had grub installed but lost it to a windows install or some other occurence that erased/changed your MBR so that grub no longer appears at start up or it returns an error.

(This how to is written for Ubuntu but should work on other systems. The only thing to take note of, when you see "sudo" that will mean to you that the following command should be entered at a root terminal.)

Boot into the live Ubuntu cd. This can be the live installer cd or the older live session Ubuntu cds.

When you get to the desktop open a terminal and enter. (I am going to give you the...

0 0

Before you begin to use the LLVM system, review the requirements given below. This may save you some trouble by knowing ahead of time what hardware and software you will need.


LLVM is known to work on the following host platforms:

Code generation supported for Pentium processors and up Code generation supported for 32-bit ABI only To use LLVM modules on Win32-based system, you may configure LLVM with -DBUILD_SHARED_LIBS=On. MCJIT not working well pre-v7, old JIT engine not supported any more.

Note that Debug builds require a lot of time and disk space. An LLVM-only build will need about 1-3 GB of space. A full build of LLVM and Clang will need around 15-20 GB of disk space. The exact space requirements will vary by system. (It is so large because of all the debugging information and the fact that the libraries are statically linked into multiple tools).

If you you are space-constrained, you can build only selected tools or only selected...

0 0

Ubuntu 15.04 final beta is already out couple of weeks before. The final version of Ubuntu 15.04 will be released on coming April 23, 2015. Check the release notes for more details.

This comprehensive tutorial describes how can we enhance Ubuntu 15.04, and other older versions such as Ubuntu 14.10/14.04/13.10/13.04/12.10/12.04 etc., further for day to day activities. Also, this article will show you some interesting insights and ideas about what you can and should do after a successful installation of Ubuntu latest desktop version.

If you already use previous release of Ubuntu, and want to upgrade to the current latest version, then please refer the below link.

1. Preparing your Ubuntu desktop

1.1 Update System

The first and foremost thing to do is update/upgrade software repositories and make sure your systems contains latest versions of all software.

To do that, run:

sudo apt-get update && sudo apt-get upgrade

1.2 Install...

0 0

Apt-fast is a script that can "drastically improve APT download speed" by using command line download accelerators such as Axel or Aria2 with multiple connections per package.

We've actually blogged about apt-fast back in 2009 but since then, the script has received some important changes so I've wanted to update our readers with its current status.

Since our previous apt-fast articles, the script has gained support for multiple download tools (axel and aria2), an option to download the binary in the current folder as well as an option to use either apt-get or aptitude. Furthermore, apt-fast has an official PPA for Ubuntu users and it's even present in the official repositories for some Linux distributions, like PCLinuxOS for instance.


uses aria2 or axel, 2 great command line download tools to improve download speed, with multiple connections per package supports both apt-get and aptitude proxy support supports most apt-get...
0 0