Results 1 to 4 of 4

Thread: How do I uninstall a curl package?

  1. #1
    Join Date
    Mar 2006
    Location
    Waaaaaaaaay too far north
    Beans
    221
    Distro
    Ubuntu 14.04 Trusty Tahr

    How do I uninstall a curl package?

    I installed a curl process on my raspberry pi, but now I want to remove it via the command line.
    I tried apt-get remove piJS but the os reports it was not able to locate the package.

    Any advice?

    The install command was...
    curl http://pijs.io/install-pijs.sh |bash
    I'm using ubuntu 14.04

  2. #2
    Join Date
    Oct 2009
    Location
    Elgin, IL USA
    Beans
    3,363
    Distro
    Ubuntu 16.10 Yakkety Yak

    Re: How do I uninstall a curl package?

    Judging from reading that install script you likely need to stop that process if it is running, remove that init script, then remove the symlinks to that script, and it must be done in that order:
    Code:
    sudo /etc/init.d/pijs stop
    sudo rm /etc/init.d/pijs
    sudo update-rc.d pijs remove
    i5 650 3.2 GHz upgraded to i7 870, 16 GB 1333 RAM, nvidia GTX 1060, 32" 1080p & assorted older computers

  3. #3
    Join Date
    Feb 2007
    Location
    West Hills CA
    Beans
    10,044
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: How do I uninstall a curl package?

    This is the script:

    Code:
    #!/bin/sh
    
    VERSION=0.1.1
    PRECOMPILED=http://pijs.s3.amazonaws.com/pijs-precompiled-$VERSION.tar.gz
    
    PING_INSTALL_1='http://io.tbideas.com/pijs/installing?precompiled=true'
    PING_INSTALL_2='http://io.tbideas.com/pijs/install-done'
    
    echo "# Installing piJS on this Raspberry Pi... (using precompiled binaries)"
    
    echo "## Pinging stat server to record a new installation... (no personal info sent)"
    curl $PING_INSTALL_1
    
    echo "## Downloading package with nodejs, pi-blaster and dependencies ..."
    curl $PRECOMPILED -o /tmp/pijs-precompiled.tar.gz
    
    echo "## Installing nodejs and dependencies"
    cd / && sudo tar zxvf /tmp/pijs-precompiled.tar.gz
    
    echo "Configuring auto-start"
    sudo cp /usr/local/lib/node_modules/pi-steroid/pijs-boot.sh /etc/init.d/pijs
    sudo chmod +x /etc/init.d/pijs
    sudo update-rc.d pijs defaults
    sudo /etc/init.d/pijs start
    
    echo "# Installation finished! Pinging stat server"
    curl $PING_INSTALL_2
    So it did not install a package. But it did install a service pijs.

    Try stopping it first:

    Code:
    sudo /etc/init.d/pijs stop
    I have a raspberrypi, what does this service do?

    You can look at the script /etc/init.d/pijs and see what binaries are called. Then delete those one-by-one.
    Last edited by tgalati4; December 8th, 2013 at 02:01 AM.
    -------------------------------------
    Oooh Shiny: PopularPages

    Unumquodque potest reparantur. Patientia sit virtus.

  4. #4
    Join Date
    Mar 2006
    Location
    Waaaaaaaaay too far north
    Beans
    221
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: How do I uninstall a curl package?

    Thanks, the 3 steps seemed to work.

    Quote Originally Posted by tgalati4 View Post
    I have a raspberrypi, what does this service do?
    It is an in-browser, cloud based programming tool from http://pijs.io/
    I gave it a try but didn't really have a use for it. Then I noticed it was a redundant service so I wanted to remove it. I develop on my pi with gedit over ssh.
    I'm using ubuntu 14.04

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
  •