remove repo

All you have to do is add --remove argument and run it again:

Note that this commands supports PPA names as you see in the above command as well as deb lines. For example this is a valid command too (can use it with --remove):

  • from root file manager: run in Terminal gksu nautilus or gksu thunar or gksu nemo depending on what file manager you use. Then go to /etc/apt/sources.list.d folder and delete the file you want.
  • from Terminal: sudo rm /etc/apt/sources.list.d/custom.list &9amp; sudo rm /etc/apt/sources.list.d/custom.list.save.

Otherwise the changes will not be taken into account. Note that Software & Updates automatically prompts you to do this when you try to close it after changing repos. Also, Ubuntu Software Center and Synaptic Package Manager may update apt before installing packages.

You should also backup or delete contents of /etc/apt/sources.list.d folder. Now, you can copy and paste the command from Repogen which looks like:

Use the command provided by Repogen (the above is not a valid one). After this, update cache and you're done:

You should now be able to update and install packages on your OS.


Using openSUSE zypper for package management (adding, removing, repository management)

First a quick introduction on zypper. needle . Zypper is a command line package and software repository manager that will do about everything you need. self storage units . cars for sale . Zypper will allow you to install a package from a repository, a local RPM, protect (lock) a package, add and remove repositories, let you run different query types and even more if you wanted it to. First, lets go over the basic and most used options of zypper:

zypper help # This will give you the help and usage listzypper help command # This will give you the help option of a specific zypper functionzypper lu # This will list updates (use the -t switch to change what package type)zypper up # This will update patches by default (you can update packages by using -t package)zypper in package # Install application named packagezypper rm package # Remove application named packagezypper se package # Search for application named package

Now there are some of the most used uses of zypper. fences and gates . massachusetts divorce lawyers . So lets go into more detailed usage. tree services . First we will work with repositories: RepositoriesListing, adding and deleting a repository.To list your repositories:

Note: to get more details on them run it with the –detail switch (note that’s 2 -‘s and not 1 big -). eric nelson . Example output of zypper lr:Remove repofigure 1To add a repository:

sudo zypper ar http://location/of/repository Name Of Repository

To remove a repository:

sudo zypper rr Name Of Repository

Note: you can also remove a repository by the repo number from the zypper lr output. landscape companies . (Figure 1)Now that we have repositories, what are other things we can do with them, here we are going to look at enabling and disabling a repo: Note: with these you can use name of repo or number gathered from lr output in figure 1Enabling a repository:

sudo zypper mr -e Name Of Repo

Disabling a repository:

sudo zypper mr -d Name Of Repo

Renaming a repository:

sudo zypper nr Name Of Repo New Name Of Repo

The last great overlooked zypper tool is to export/import your repo list:

zypper lr –export /location/of/saved/repo.repo

You can later import this repo file on this or another machine by running

sudo zypper ar /location/of/saved/repo.repo

Bonus: To force a refresh of all your repositories run:

sudo zypper ref –force

This sometimes helps if you have a cached issue. Ok, now we have our repositories and we’ve enabled em. koons . Now lets get to managing our packages: Installing a package via the name:

sudo zypper in bluefish

This would install the bluefish application. limousine service . Installing a package via a requirement:

sudo zypper in libnm-util.so.0

This would install NetworkManager-glibInstalling a local rpm package:

sudo zypper in /location/of/rpmpackage.rpm

Installing a package from a specific repo:

sudo zypper in education:bluefish

This would install the bluefish package from the education repo. Force the re-installation of a package:

sudo zypper in -f bluefish

Bonus: You can install a package pattern using:

sudo zypper in -t pattern pattern_name

You can get the pattern names from:

sudo zypper se -t pattern

Now lets remove those pesky files we just installed:

sudo zypper rm bluefish

This will remove the bluefish packageBonus: You can remove and install an application together

sudo zypper in bluefish -fslint

This will conclude this poriton of the zypper tutorial. I’ll do a part 2 which will include queries, searching, updating and distribution updating. stanley . Part 2 will hopefully be followed up later this week. Encino Workers Comp Attorney . Car Insurance For Day . atlanta bankruptcy attorney . seattle tree service .