Results 1 to 10 of 10

Thread: install .deb file

  1. #1
    Join Date
    Jul 2018
    Beans
    2

    install .deb file

    hi everyone
    I am new player to ubuntu
    how can i install .deb file in ubuntu with dependency? (in terminal or without it)
    my ubunut is 18.04

    Many Thanks
    samad

  2. #2
    Join Date
    Nov 2012
    Location
    Halloween Town
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

  3. #3
    Join Date
    Jul 2018
    Location
    Canada
    Beans
    11
    Distro
    Ubuntu

    Re: install .deb file

    open the terminal and type:

    Code:
    sudo dpkg -i yourdebfile.deb
    If you get an error after running this command then type:

    Code:
    sudo apt -f install
    That should do it.

    To know more about specific commands you can also run the man command. Like:


    Code:
    man dpkg
    It will usually show you information about a specific commands and all the things you can do with it.
    Last edited by twily2018; July 23rd, 2018 at 02:36 PM.

  4. #4
    Join Date
    Aug 2013
    Beans
    4,941

    Re: install .deb file

    Just click it. Then the software centre would install it.

  5. #5
    Join Date
    Aug 2013
    Beans
    4,941

    Re: install .deb file

    Quote Originally Posted by twily2018 View Post
    open the terminal and type:

    Code:
    sudo dpkg -i yourdebfile.deb
    If you get an error after running this command then type:

    Code:
    sudo apt -f install
    That should do it.

    To know more about specific commands you can also run the man command. Like:


    Code:
    man dpkg
    It will usually show you information about a specific commands and all the things you can do with it.


    If you must use command

    Code:
    sudo apt install /absolute/path/to/deb
    would do it.

    I don't recommend -f if errors are encountered without knowing what the errors are. It might install the .deb while your underlying problems remain unresolved.

    But this is a new user section, why make it more complicated than has to? Man dpkg to install a .deb?? BTW dpkg doesn't install dependencies.
    Last edited by monkeybrain20122; July 23rd, 2018 at 04:48 PM.

  6. #6
    Join Date
    Sep 2009
    Location
    Pennsylvania
    Beans
    3,981
    Distro
    Xubuntu

    Re: install .deb file

    Or, you could install the package gdebi and make it rather easy. Gdebi is in the Software Center and synaptic.

  7. #7
    Join Date
    Jul 2018
    Location
    Canada
    Beans
    11
    Distro
    Ubuntu

    Re: install .deb file

    Quote Originally Posted by monkeybrain20122 View Post
    If you must use command

    Code:
    sudo apt install /absolute/path/to/deb
    would do it.

    I don't recommend -f if errors are encountered without knowing what the errors are. It might install the .deb while your underlying problems remain unresolved.

    But this is a new user section, why make it more complicated than has to? Man dpkg to install a .deb?? BTW dpkg doesn't install dependencies.
    -f will get the dependencies.

  8. #8
    Join Date
    Aug 2013
    Beans
    4,941

    Re: install .deb file

    Quote Originally Posted by twily2018 View Post
    -f will get the dependencies.
    No, apt install would get the dependencies already.

  9. #9
    Join Date
    Jul 2018
    Location
    Canada
    Beans
    11
    Distro
    Ubuntu

    Re: install .deb file

    Quote Originally Posted by monkeybrain20122 View Post
    No, apt install would get the dependencies already.
    I see now. I didn't know that. It just never auto-completed the packages in the same directory, had to write the full path while dpkg did it in the same directory and then I just had to run apt -f install which then gets the deps and install it. I guess it's just a matter of preference. For 5 years on debian I always used dpkg. lol

  10. #10
    Join Date
    Aug 2013
    Beans
    4,941

    Re: install .deb file

    Quote Originally Posted by twily2018 View Post
    I see now. I didn't know that. It just never auto-completed the packages in the same directory, had to write the full path while dpkg did it in the same directory and then I just had to run apt -f install which then gets the deps and install it. I guess it's just a matter of preference. For 5 years on debian I always used dpkg. lol
    Using apt to install deb is new so before you could only use dpkg.

    I should have said /path/to/deb rather than absolute path, so if you are in the directory of the deb just do

    sudo apt install ./name of deb

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
  •