Deb File Installer Application
I have a deb package for installation.
Shall I install by dpkg -i my.deb
, or by apt?
On all Ubuntu distributions that I've tried, double clicking on a.deb file brings up either the Package Installer or the Ubuntu Software Center. Both of those applications then ask the user for their admin password to install the software. Tweak Installer for iOS 11. Tweak installer is a desktop-based toolkit for Electra development which was designed and developed by Joseph Walden for solving the various issues related to the installation of tweaks to your device.
Will both handle the software dependency problem well?
If by apt, how can I install from the deb by apt?
8 Answers
When you use apt
to install a package, under the hood it uses dpkg
. When you install a package using apt, it first creates a list of all the dependencies and downloads it from the repository.
Once the download is finished it calls dpkg
to install all those files, satisfying all the dependencies.
So if you have a .deb
file:
You can install it using
sudo dpkg -i /path/to/deb/file
followed bysudo apt-get install -f
.You can install it using
sudo apt install ./name.deb
(orsudo apt install /path/to/package/name.deb
).
With oldapt-get
versions you must first move your deb file to/var/cache/apt/archives/
directory. For both, after executing this command, it will automatically download its dependencies.Install
gdebi
and open your .deb file using it (Right-click ->Open with). It will install your .deb package with all its dependencies.(Note: APT maintains the package index which is a database of available packages available in repo defined in
/etc/apt/sources.list
file and in the/etc/apt/sources.list.d
directory. All these methods will fail to satisfy the software dependency if the dependencies required by the deb is not present in the package index.)
sudo apt-get install -f
after sudo dpkg -i /path/to/deb/file
(mentioned in first method).From man apt-get
When dpkg
install a package and package dependency is not satisfied, it leaves the package in unconfigured
state and that package is considered as broken.
sudo apt-get install -f
command tries to fix this broken package by installing the missing dependency.
Install your foo.deb
file with dpkg -i foo.deb
. If there are some errors with unresolved dependencies, run apt-get install -f
afterwards.
Here's the best way to install a .deb
file on Ubuntu on the command-line:
Shiv amritvani anuradha paudwal. If you don't have gdebi
installed already, install it using sudo apt install gdebi-core
.
gdebi
will look for all the dependencies of the .deb
file, and will install them before attempting to install the .deb
file. I find this much preferable than sudo dpkg -i skype.deb && sudo apt install -f
. The latter is much too eager to remove dependencies in certain situations. For instance, when I tried to install Skype, it attempted to remove 96 (!) packages, including packages like compiz
and unity
! gdebi
gave a much clearer error message:
(Here is the solution to that particular issue, by the way.)
You can install a local .deb package by:
Make sure to specify a local relative or absolute path (./
if in current dir), otherwise it will look for foo.deb
in the remote repos and fail.
Check the dependencies with dpkg -I my.deb
and apt-get install
the dependencies before dpkg -i my.deb
.
May be you can copy the Doesn't work, my.deb
in /var/cache/apt/archives
and install it directly with apt-get
but I never tried.apt-get
and dpkg
are looking for packages listed in archives.
The simplest answer would be to use dpkg by running dpkg -i packagename.deb
. You could then uninstall it by running dpkg -r packagename.deb
.apt-get
is a higher level installer based off of dpkg, and as such you could apt-get install packagename.deb
.
It would be beneficial for add it to your apt-get archives directory (/var/cache/apt/archives
) so you could reference it as a package with dependencies and not a standalone .deb archive.
Also, by adding it to your apt-get archives directory, you have the opportunity to use dependencies with apt-get install packagename
. This would let you install it with any manually added dependencies instead of dpkg's standalone archive-based system.
Modern apt-get can be used to install a package simply with apt-get install /path/to/package/name.deb
.
(should be done as edit to the top answer but it was rejected - see https://unix.stackexchange.com/posts/159114/edit)
It is very simple if I want to install Chrome.
Install your Chrome file as:
Sometimes there is a chance of getting some dependency errors like the following:
Zaha hadid san francisco. So to resolve above issues, you need to add dependencies; give the following command:
After giving the above command, dependencies will be added to your machine and your Debian package (.deb
) file will be installed.
protected by Community♦Nov 6 '15 at 13:57
Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?
Not the answer you're looking for? Browse other questions tagged software-installationaptdpkgdeb or ask your own question.
I went to the Ubuntu wiki but got confused,there were too many ways. Please tell me an easy guide to Debian packaging.
6 Answers
This is a good HOWTO for creating a basic .deb
file. It is suitable for creating .deb
files for personal use but not stringent enough if you want to the package to be included in Debian / Ubuntu - for that you should read the Debian New Maintainer's Guide and/or the Ubuntu Packaging Guide (which I believe you've already tried).
A good tool for checking your .deb
file for compliance is lintian
(installable from the repositories).
There were two sessions here in the Ask Ubuntu chatrooms.
What parts are you having trouble with? Although complicated, the guide seemed quite clear when I was following it.
Deb Installer Ios
Quick Summary:
Mohammad Rafi Songs Mp3 Free Download >>> Download Muhammad Rafi - 2 Songs Indian Artists Mp3 Songs, Muhammad Rafi. Download Songs Mohammad Rafi Songs Download only for review course,.
- Extract source
.tar.gz
- Run
dh_make
- Edit debian files
- Run debuild
You can even use dpkg-deb
for creating simple packages.
Here's a nice tutorial from Ubuntuforums.
The very easiest way to package something is to use checkinstall.
No, the simplest and clearest packaging guide in this world is
http://blog.noizeramp.com/2005/08/31/packaging-java-applications-for-ubuntu-and-other-debians/.
Few days ago, for my first application, I created DEB package by following this tutorial. Very clear and my app packaged succesfully. Yes, at least it is simplest for me.
You can compare it with Debian Packaging Guide.
Originally posted on StackOverFlow, this guide is for pre-compiled or interpreted software:
The right way of building a deb package is using dpkg-buildpackage
but sometimes it is a little bit complicated. Instead you can use dpkg -b <folder>
and it will create your Debian package.
These are the basics for creating a Debian package with dpkg -b <folder>
with any binary or with any kind of script that runs automatically without needing manual compilation (Python, Bash, Pearl, Ruby):
Create the files and folders in order to recreate the following structure:
The scripts placed at
/usr/bin/
are directly called from the terminal, note that I didn't add an extension to the script. Also you can notice that the structure of the deb package will be the structure of the program once it's installed. So if you follow this logic if your program has a single file, you can directly place it underProgramName-Version/usr/bin/your_script
, but if you have multiple files, you should place them underProgramName-Version/usr/share/ProgramName/all your files
and place only one file under/usr/bin/
that will call your scripts from/usr/share/ProgramName/
Change all the folder permissions to root:
Change the script's permissions:
Finally, you can run:
dpkg -b /path/to/the/ProgramName-Version
and your deb package will be created! (You can also add the post/pre inst scripts and everything you want, it works like a normal Debian package)
Here is an example of the control
file. You only need to copy/paste it in to an empty file called 'control' and put it in the DEBIAN folder.
karel