How to remove a package built from source that has the same name of another package?

Pierre

I'm running Debian 7.3 and I built Python 2.7.6 from source and it was installed in /usr/local/lib/python2.7 I used checkinstall to create a .deb package so I can easily uninstall it later, the problem is that I named the package python, but if I try to remove it it'll remove all the other packages that depend on python, so now I removed the installed files manually but the package is still showing in Synaptic package manager and also if I run:

apt-cache show python

I can see the 2 descriptions, the one I installed and the default one, also in Synaptic I can see it under Status > Installed (local or obsolete).

So how can remove this package without removing the original python package ? it's showing 2 versions 2.7.6 (my own version) and 2.7.3 (the system's version), can I remove 1 version and keep the other ?

Braiam

You should just install the python version from the repositories. Lets assume the following:

apt-cache policy python
python:
  Installed: 2.7.6
  Candidate: 2.7.6
  Version table:
 *** 2.7.6 0
        100 /var/lib/dpkg/status
     2.7.3 0
        500 http://ftp.us.debian.org/debian/ stable/main i386 Packages

In this case, the package installed isn't available in any of the repositories. Then what we should do is downgrade the package using apt-get:

sudo apt-get install python/stable

or

sudo apt-get install python=2.7.3

or

sudo apt-get -t stable install python

This will downgrade the package seamlessly. Next time append to the package some version name like this python2.7.6 to prevent this.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How do I use a package in composer that has the same name as another package?

From Dev

How to remove a specific package from dependency list of another package?

From Dev

How do I remove an existing built package from a PPA?

From Dev

How to package from source?

From Dev

How to remove package name from start of function from a node module

From Dev

Import default python package that was overwritten by another package with the same name

From Dev

NuGet package contains assembly with the same name as an assembly in another package

From Dev

Java protected modifier accessible in another package having the same package name

From Dev

Import default python package that was overwritten by another package with the same name

From Dev

How to Access variable from another class in same package in java

From Dev

How to remove a package from Pypi

From Dev

Dose package name in source code, should be same as the jar file name

From Dev

Remove package and module name from sphinx function

From Dev

Remove package and module name from sphinx function

From Dev

How to remove .deb package? illegal package name in specifier : character '~' not allowed

From Dev

How to remove parts of an android package name with AndroidStudio?

From Dev

What is the package name for Software & Updates and how to remove it?

From Dev

Calling one app from another app both having same package name in android

From Dev

How to get the package name of a non-built-in command?

From Dev

How to call a built-in function IsTesting() from a class-method which has the same name IsTesting()?

From Dev

When a PPA has a package of the same name in the Ubuntu Software Center

From Dev

How to directly download a source package installation package tarball from a URL?

From Dev

How to build a specific package from a Debian source package?

From Dev

How to apt-get install package from different package source

From Dev

How to directly download a source package installation package tarball from a URL?

From Dev

Java: how to open one Jframe from another Jframe which is not in the same file but in the same package;

From Dev

How to compile a Debian package from source?

From Dev

How to install package from source on fedora in 2017?

From Dev

If I build a package from source how can I uninstall or remove completely?

Related Related

  1. 1

    How do I use a package in composer that has the same name as another package?

  2. 2

    How to remove a specific package from dependency list of another package?

  3. 3

    How do I remove an existing built package from a PPA?

  4. 4

    How to package from source?

  5. 5

    How to remove package name from start of function from a node module

  6. 6

    Import default python package that was overwritten by another package with the same name

  7. 7

    NuGet package contains assembly with the same name as an assembly in another package

  8. 8

    Java protected modifier accessible in another package having the same package name

  9. 9

    Import default python package that was overwritten by another package with the same name

  10. 10

    How to Access variable from another class in same package in java

  11. 11

    How to remove a package from Pypi

  12. 12

    Dose package name in source code, should be same as the jar file name

  13. 13

    Remove package and module name from sphinx function

  14. 14

    Remove package and module name from sphinx function

  15. 15

    How to remove .deb package? illegal package name in specifier : character '~' not allowed

  16. 16

    How to remove parts of an android package name with AndroidStudio?

  17. 17

    What is the package name for Software & Updates and how to remove it?

  18. 18

    Calling one app from another app both having same package name in android

  19. 19

    How to get the package name of a non-built-in command?

  20. 20

    How to call a built-in function IsTesting() from a class-method which has the same name IsTesting()?

  21. 21

    When a PPA has a package of the same name in the Ubuntu Software Center

  22. 22

    How to directly download a source package installation package tarball from a URL?

  23. 23

    How to build a specific package from a Debian source package?

  24. 24

    How to apt-get install package from different package source

  25. 25

    How to directly download a source package installation package tarball from a URL?

  26. 26

    Java: how to open one Jframe from another Jframe which is not in the same file but in the same package;

  27. 27

    How to compile a Debian package from source?

  28. 28

    How to install package from source on fedora in 2017?

  29. 29

    If I build a package from source how can I uninstall or remove completely?

HotTag

Archive