Results 1 to 7 of 7

Thread: Register package with dpkg

  1. #1
    Join Date
    Dec 2013
    Beans
    2

    Register package with dpkg

    Hi,

    I wanted to install eclipse juno on Ubuntu (apt-get installs an older version of eclipse). I downloaded the archive from the eclipse website and extracted it into the /opt folder, and then created a symlink in the /usr/local/bin folder.

    Eclipse runs fine, but the problem is that dpkg doesn't know about it (e.g. apt-get remove eclipse doesn't work).

    Is there a way to tell dpkg that I've manually installed a package?

    Thanks in advance for your help.

  2. #2
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!

    Re: Register package with dpkg

    You can use checkinstall to install the package. See: community/CheckInstall

  3. #3
    Join Date
    Jun 2007
    Location
    Arizona U.S.A.
    Beans
    2,764

    Re: Register package with dpkg

    As far as I know, there is no way to do that. You need to install from a .deb file for it to be manageable. Otherwise, you are the package manager.

    Sometimes there is an uninstall script included with the non-deb package to remove it. Otherwise, you would just delete the program's folder and contents manually and any links to it that you made to get rid of it.

    Use the repositories whenever possible. Easier and safer.

  4. #4
    Join Date
    Dec 2013
    Beans
    2

    Re: Register package with dpkg

    Thanks for your answers. I gather that I'd have to create a .deb file myself and install it from that.

  5. #5
    Join Date
    Apr 2012
    Beans
    6,635

    Re: Register package with dpkg

    You may be able to use 'alien' to automate the creation of a deb from the tarball - however I don't know how reliable it is, you should look at sisco311's suggestion using checkinstall
    Last edited by steeldriver; December 29th, 2013 at 05:34 PM.

  6. #6
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!

    Re: Register package with dpkg

    checkinstall works with any command. Something like:
    Code:
    sudo checkinstall --pkgname eclipse \
    --pkgversion 4.3.1 \
    --pkgarch amd64 \
    --pkglicense EPL \
    --requires default-jre \
    sh -c 'tar xfvz eclipse-standard-kepler-SR1-linux-gtk-x86_64.tar.gz -C /opt/ && ln -s /opt/eclipse/eclipse /usr/local/bin/eclipse'
    should create a .deb package

  7. #7
    Join Date
    Apr 2012
    Beans
    6,635

    Re: Register package with dpkg

    ^^^ ah thanks for that, I hope the OP comes back and sees it - I will edit my previous post since I'm not sure how reliable alien is

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •