LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-26-2012, 12:59 AM   #1
rupeshforu
Member
 
Registered: Dec 2012
Posts: 97

Rep: Reputation: Disabled
help on installing packages on debian


Sir,

Sorry for disgusting you asking same question again and again.As I am new to Debian. Please help me.

I have installed Debian wheezy( testing ) freshly on my system. I have downloaded all the packages approximately 36000 from online repositories using apt-get download command. As I want to install maximum number of packages. Which is the best and easiest method to install these packages with minimum intervention from me like aptitude, synaptic, dselect or any other command.


Regards,
Rupesh.
 
Old 12-26-2012, 02:29 AM   #2
m.a.l.'s pa
Member
 
Registered: Oct 2007
Location: albuquerque
Posts: 220

Rep: Reputation: 50
Quote:
Originally Posted by rupeshforu View Post
I have downloaded all the packages approximately 36000 from online repositories using apt-get download command.

Is this possible? Looking at man apt-get, it seems that apt-get download requires at least a package name -- apt-get download pkg.

Quote:
Originally Posted by rupeshforu View Post
As I want to install maximum number of packages. Which is the best and easiest method to install these packages with minimum intervention from me like aptitude, synaptic, dselect or any other command.
This sounds, to me, like a really bad idea. But it should be relatively easy to use Synaptic to select a lot of packages and then install them. In Synaptic, you can click on the "Status" button, then click on "Not installed," and you'll have a list of all packages that are currently not installed.

It's possible to actually go to the resulting package list in Synaptic, click on the first package on the list, scroll down to the end of the list, and while holding down the Shift key, click on the last package on the list, and that selects every package in the "Not installed" list. Then you could, in theory, go up and click Package > Mark for Installation, which would mark all of those uninstalled packages for installation!

I wouldn't advise it, though. If you really wanted to do all that, be prepared to wait a long time while Synaptic tries to mark over 30,000 packages for installation.

Then, if that actually works, you could click on "Apply."

Then, if that actually works, be prepared to wait a very long time while the changes are applied!

However, it is much better to simply use Synaptic to install only the packages that you really need to add.

Last edited by m.a.l.'s pa; 12-26-2012 at 04:10 AM.
 
Old 12-26-2012, 03:42 AM   #3
rupeshforu
Member
 
Registered: Dec 2012
Posts: 97

Original Poster
Rep: Reputation: Disabled
help on installing packages on debian

sir I have downloaded the packages using the command

apt-cache pkgnames|sort -u > package_names && apt-get download `cat package_names` --ignore-missing

In synaptic suppose I select 200 packages and mark them as install. Message box is appearing as you have to remove the following packages and the list may be 50 to even 150.

In order to make my ambition true I have to select single and mark it as install if it suggests removing of already installed packages I have to deselect it if not install. This process is taking months.

I cant select all the packages in not installed category and mark them as install.

I heard that tasks topic is there in aptitude for example to install all packages related to gnome there is a task for gnome in aptitude. I don't know the exact procedure so can u suggest how to of aptitude.


Regards,
Rupesh.
 
Old 12-26-2012, 03:58 AM   #4
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 291Reputation: 291Reputation: 291
Quote:
Originally Posted by rupeshforu View Post
... I have downloaded all the packages approximately 36000 from online repositories using apt-get download command. As I want to install maximum number of packages. Which is the best and easiest method to install these packages with minimum intervention from me like aptitude, synaptic, dselect or any other command.
I don't know why you would ever want to install all of the packages in the Debian repositories. Do you have some compelling reason to have every single application available on the Debian repos installed on your system???

If you downloaded all the packages to a directory, then just cd into that directory, then run as root:
Code:
apt-get install *.deb
You may run into dependency problems if, for example, you install package B before it's dependency package A is installed. You may have to run that command a few times to get everything installed.

Let us know how this works out. I have never heard of anyone who wanted to install all the packages available on any distro. I hope your root partition is big enough.
 
Old 12-26-2012, 04:12 AM   #5
m.a.l.'s pa
Member
 
Registered: Oct 2007
Location: albuquerque
Posts: 220

Rep: Reputation: 50
I agree with the comments in tommcd's reply. I think it is much safer to only selectively install packages that you really need rather than trying to install as many packages as possible, assuming that I'm understanding what you're trying to do. There are many thousands of applications available to you from the Debian repositories, but I can't see any reason for trying to install them all.

But perhaps I have misunderstood.

I'm sorry, but I'm not sure that I can help here. I've been a Debian user for several years, but I would never attempt what I think you're trying to do.
 
Old 12-26-2012, 04:17 AM   #6
rupeshforu
Member
 
Registered: Dec 2012
Posts: 97

Original Poster
Rep: Reputation: Disabled
help on installing packages on debian

Sir,

No need to bother about hardware which I am listing below

AMD64 FX-4100 CPU
Gigabyte motherboard
500GB hard disk
8GB RAM.


I want help on aptitude. Can u provide tutorials,books,references about aptitude.
 
Old 12-26-2012, 04:22 AM   #7
m.a.l.'s pa
Member
 
Registered: Oct 2007
Location: albuquerque
Posts: 220

Rep: Reputation: 50
Quote:
Originally Posted by rupeshforu View Post
I want help on aptitude. Can u provide tutorials,books,references about aptitude.
You have already looked at man aptitude?
 
Old 12-26-2012, 07:35 AM   #8
dreamwalking
Member
 
Registered: Dec 2005
Distribution: Slackware 14
Posts: 106

Rep: Reputation: 30
http://wiki.debian.org/Aptitude (Debian wiki covers almost everything else you will need to know, too).

I don't get why you want to install all possible packages, but since you do, I advice to be very careful on what repositories you have in your /etc/apt/sources.list Make sure you don't simultaneously use repositories for testing, unstable, experimental, etc, in fact, better only use one deb and one deb-scr entry, or you will end up in a cross-conflicting dependencies hell that will be really hard to resolve.

If I recall well, *all* available packages would mean 2-3 kernels or more, 3-4 different (and possibly conflicting) versions of libraries, etc. The message box that appears in synaptics requesting you to remove packages, is there because you are trying to install conflicting packages. Debian package system *has* to take care of dependencies and won't let you get in the way.

(edited):
Quote:
Originally Posted by rupeshforu View Post
I heard that tasks topic is there in aptitude for example to install all packages related to gnome there is a task for gnome in aptitude. I don't know the exact procedure so can u suggest how to of aptitude.
IIRC, there are virtual packages that will satisfy every dependency for a given package. Ie,
apt-get install kde
will install kde-base with all the dependencies (and probably some packages of the 'recommended' category).

BTW, maybe this will convince you that it's not a good idea try to install all the packages:
http://www.debian.org/doc/manuals/de...html#s-depends
Debian just won't let you install packages that conflict, replace or break other packages.

Last edited by dreamwalking; 12-26-2012 at 07:43 AM.
 
Old 12-26-2012, 07:56 AM   #9
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 2,321
Blog Entries: 1

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
tasksel will grab most things. You really can't grab everything. nVidia, and ATI drivers do not co-exist. And other this "or" that, but "not and" packages.

$ dpkg -l

Will list your installed packages.

$ dpkg-query --load-avail -l '*'

Will list ALL packages. Which you could use awk to strip out just the package names and pass that to apt-get install. But it will fail as you cannot install all packages. But you can pipe that list to a file and edit the file then pass the file to apt-get install. Still a bit of a waste as some things are daemons that "NEED" to be configured before being run. And while debian configurations tend to be semi-sane, they're not always out-of-the-box ready to be used.

If you're not worried about current packages, you could grab all the *.deb packages from the CD / DVD images and put them into /var/cache/apt/archives/. Which will allow you to install those when needed, without having to bother with a network and a download. This implies that you use only the CD / DVD images for the install. Since a lot of packages will become obsolete as soon as something like GCC updates in the repositories available online. If they weren't already obsolete the day before the images were made available for download.
 
Old 12-26-2012, 08:02 AM   #10
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 2,321
Blog Entries: 1

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
As I look at my own system.

$ dpkg-query --load-avail -l | wc -l
1647

$ dpkg-query --load-avail -l '*' | wc -l
49813

There's some headers on that list and some packages that are virtually there for dependency reasons. And this is for Debian/sid. But I have a lot of things installed already. Enough to compile openjdk from sources. And things like libreoffice. But I do not have gnome or KDE installed (yet) as I'm using IceWM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using wajig for installing packages in debian rng Linux - General 5 12-28-2012 11:53 PM
Installing packages on Debian Etch J_Szucs Debian 2 04-20-2009 03:07 AM
installing debian packages automata Linux - Software 12 10-08-2007 12:59 PM
installing gcc with debian packages farkmischer Linux - Software 4 12-03-2004 12:07 PM
Installing Debian Packages eForce Linux - Distributions 4 07-12-2002 11:05 AM


All times are GMT -5. The time now is 04:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration