GeneralThis forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I already downloaded the package. I thought apt-get was to download and install... Like I said I feel like a noob. Debian is very different from RH or Mandrake.
apt-get does download and install packages. Do you have a package that you downloaded that you just want to install? You can also install local packages with dpkg.
Obviously, using apt is the preferred way of installing things, but if you grab a .deb manually and want to install it, you have a few choices of how you want to do it. One is good for quick things but can be a bit tougher to troubleshoot, and one takes longer to set up but it's a good general solution for installing manually downloaded .deb files.
First option - dpkg -i
That's how you used to have to install .deb files (back in like ... '95 or so, before apt). dpkg -i foo.deb and go. The major problem with this is that there is no dependency resolution done. There is still dependency checking done, of course, but it won't be able to go and get those dependencies for you. You'll have to get those via apt before you can successfully install the deb. This is the quick fix.
Second option - set up your own local apt repository
This is a bit advanced, but it's not too tough to do, so I thought I'd throw it in here. If you're someone who will (for some odd reason) be downloading a lot of .deb files manually and wanting to install them via apt (for the dependency resolution), this is probably the way to go. Basically, you are setting up your own apt source on your local filesystem and then apt-getting it from yourself.
First, decide where you want to put it. I recommend either ~/deb or /usr/local/deb (perhaps debian instead of deb for either). Once that directory is created, toss whatever .deb files that you want to install in there. Now, you need to grab the tools for setting one up. They are in the dpkg-dev package, so grab that from apt. Next, you have to run one simple command which will create/update the apt reopsitory to reflect what .deb files you have in there. First, change to the directory one level above your deb directory, and run this command:
dpkg-scanpackages deb /dev/null | gzip > deb/Packages.gz
You'll probably get a warning about "Packages in archive but missing from override file", but ignore that. You'll also see how many packages it put in the Packages file as well.
The last step is to simply add your new apt source to the sources.list and then update and install via apt. For the /usr/local/deb directory, the apt line would look like this:
deb file:/usr/local/deb /
Note the space between "deb" and the last "/", and don't leave it out. It's important. Once that's in your sources.list, simply apt-get update and you should be able to apt-get install anything you want that's in that directory, and it will do dependency resolution for you.
Ack, no, don't use alien. Even the creator of alien (Joey Hess) would tell you not to use alien. The only reason alien exists is for LSB compliance. In cases where there are RPMs and source available, but no debs, use the source and put it in /usr/local (with ./configure --prefix=/usr/local; make; make install). Only use alien if you absolutely have no other choice (i.e., no source available, only RPMs).
Many thanks! Choice in OS is good. Can be a bit confusing at times. Sometimes, I think there are too many ways to do things. I think Debian may have a convert.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.