Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Bash commands: what do you use when you don't have apt-get installed?

  1. #1
    Join Date
    Mar 2012
    Location
    West Coast, USA
    Beans
    188
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Bash commands: what do you use when you don't have apt-get installed?

    I'm working toward a dual partition for Ubuntu and OS 10.6, but my bash doesn't include "apt-get."

    What command would you use to GET apt-get (and install it)?

    Is there a command that updates all of bash, zsh ... and other shells?

  2. #2
    Join Date
    Apr 2012
    Beans
    5,050

    Re: Bash commands: what do you use when you don't have apt-get installed?

    The apt-get command isn't part of the shell - it's a separate executable (usually /usr/bin/apt-get)

    What system are you running on now (Ubuntu? OSX?) - if it's Ubuntu then what is the exact error you get when trying to run apt-get (it may be a path problem)?

  3. #3
    Join Date
    Sep 2006
    Beans
    7,190
    Distro
    Lubuntu Development Release

    shell

    Also, the shell is just a user interface through which you access other programs. Nearly everything you would do via the shell is based upon calling other programs. /usr/bin/apt-get is just one of thousands. Even ls and cd are just programs that you run from the shell.

    bash, ksh, zsh and dash are just variations on the theme of user interface.

  4. #4
    Join Date
    Dec 2010
    Location
    Fukuoka, Japan
    Beans
    1,054
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: Bash commands: what do you use when you don't have apt-get installed?

    What happens when you type in "apt-get"?

  5. #5
    Join Date
    Mar 2012
    Location
    West Coast, USA
    Beans
    188
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Bash commands: what do you use when you don't have apt-get installed?

    Folks: I'm trying this command: "sudo apt-get install unrar-free"

    I'm getting this response: command not found

    I get the same response if I just type "apt-get"
    I understand apt-get isn't part of the shell--that it's a command accessed by the shell (IF it's in the path). I'm on a new used Mac (an Intel dual-core purchased a couple days ago, with OS 10.6), but I'm been trying to run Virtual Box before I partition the hard drive to install Ubuntu (and struggling with that, too--learning Virtual Box).

  6. #6
    Join Date
    Sep 2006
    Beans
    7,190
    Distro
    Lubuntu Development Release

    version

    What are you running?

    Code:
    lsb_release -rd
    uname -a

  7. #7
    Join Date
    Apr 2012
    Beans
    5,050

    Re: Bash commands: what do you use when you don't have apt-get installed?

    What exactly are you trying to do? have you successfully created a virtual machine in VirtualBox, and if so what OS have you installed in it?

    Pretty much any Debian-based OS should have apt tools (apt-get or aptitude) as standard - but if you have installed a non-Debian/Ubuntu OS, it may use completely different package management tools

  8. #8
    Join Date
    Apr 2008
    Location
    Southern California, USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: version

    Quote Originally Posted by Lars Noodén View Post
    What are you running?

    Code:
    lsb_release -rd
    uname -a
    Yes, we need to find out where he's coming from. Also maybe try to find it:
    Code:
    sudo find /usr -name apt-get
    boot_info_script | AMD64 Athlon X2 Dual-Core - nVidia Geforce 6150 SE - 4GB DDR3

  9. #9
    Join Date
    Aug 2011
    Location
    52° N 6° E
    Beans
    2,156
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Bash commands: what do you use when you don't have apt-get installed?

    Is there a problem with your PATH? Try
    Code:
    echo $PATH
    #Or, if that doesn't work
    /bin/echo $PATH
    According to post #5 it cannot even find sudo, so I suspect something wrong with the PATH.

  10. #10
    Join Date
    Jun 2010
    Location
    London, England
    Beans
    6,383
    Distro
    Ubuntu Development Release

    Re: Bash commands: what do you use when you don't have apt-get installed?

    Perhaps the command is wrong. Have you tried

    Code:
    sudo apt-get install unrar
    http://download.gna.org/unrar/

    Regards.
    It is a machine. It is more stupid than we are. It will not stop us from doing stupid things.
    Ubuntu user #33,200. Linux user #530,530


Page 1 of 2 12 LastLast

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
  •