LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-26-2009, 01:56 PM   #1
Mountain
Member
 
Registered: Nov 2007
Location: A place with no mountains
Distribution: Kubuntu, sidux, openSUSE
Posts: 214

Rep: Reputation: 41
How to install packages in Busybox?


I'm in the rescue mode of the Ubuntu alternate CD installer.

I need to run blkid to get some disk info. However, blkid is not found.

I think it is in the package e2fsprogs, but when I try to run apt-get, the result is:
Code:
/bin/sh: apt-get: not found
How can I install/run blkid from within the limited environment available in rescue mode of the installer? Thanks
 
Old 02-27-2009, 09:10 AM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
From the Debian packages package=libblkid1
Quote:
The blkid library which allows system programs like fsck and mount to quickly and easily find block devices by filesystem UUID and LABEL. This allows system administrators to avoid specifying filesystems by hard-coded device names, but via a logical naming system instead.
As you see you can't "run" blkid itself. It is used by other programs such as those named above. If you want to install it then
Code:
sudo aptitude install libblkid1
cheers,
jdk
 
Old 02-27-2009, 09:23 AM   #3
Mountain
Member
 
Registered: Nov 2007
Location: A place with no mountains
Distribution: Kubuntu, sidux, openSUSE
Posts: 214

Original Poster
Rep: Reputation: 41
Hey, I appreciate the answer, but did you understand my question? "aptitude install" doesn't work in the installer environment. See what I said in my post:

apt-get: not found

so how do I install apps?

(BTW, blkid can indeed be run directly once you have it installed - try it yourself.)
 
Old 02-27-2009, 11:16 AM   #4
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Quote:
Originally Posted by Mountain View Post
Hey, I appreciate the answer, but did you understand my question? "aptitude install" doesn't work in the installer environment. See what I said in my post:

apt-get: not found

so how do I install apps?

(BTW, blkid can indeed be run directly once you have it installed - try it yourself.)
Puppy doesn't use deb-type packages so apt-get or aptitude are useless to you. Puppy comes with a "universal installer" (or something like that name) and you use that. I believe Puppy packages are called "PETS".

Rereading your post it isn't really clear what distro you are using. At first I thought you were using Ubuntu but I guess you aren't. Are you going to say which distro you're using or do I keep guessing?

Cheers,
jdk

Last edited by jdkaye; 02-27-2009 at 11:19 AM.
 
Old 02-27-2009, 11:39 AM   #5
Mountain
Member
 
Registered: Nov 2007
Location: A place with no mountains
Distribution: Kubuntu, sidux, openSUSE
Posts: 214

Original Poster
Rep: Reputation: 41
Yes, I am using Ubuntu. As I said, "I'm in the rescue mode of the Ubuntu alternate CD installer."

If you boot from the Ubuntu alternate CD installer and go into a command shell, you will be in the shell called "/bin/sh" running BusyBox. This is a very limited environment. I think you can also reach the same environment with Ctrl-Alt-F2 from the Ubuntu alternate CD installer. I am not using the Live CD because I need to do advanced disk setup.

Aptitude and apt-get are not available in this shell. So I need to know how to install '.deb' packages in that environment.
 
Old 02-27-2009, 11:49 AM   #6
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Quote:
Originally Posted by Mountain View Post
Yes, I am using Ubuntu. As I said, "I'm in the rescue mode of the Ubuntu alternate CD installer."

If you boot from the Ubuntu alternate CD installer and go into a command shell, you will be in the shell called "/bin/sh" running BusyBox. This is a very limited environment. I think you can also reach the same environment with Ctrl-Alt-F2 from the Ubuntu alternate CD installer. I am not using the Live CD because I need to do advanced disk setup.

Aptitude and apt-get are not available in this shell. So I need to know how to install '.deb' packages in that environment.
I have never used busybox but it seems to be a small set of *nix tools. Are you even sure that you can install packages from inside the BBX environment? I guess this: http://www.busybox.net/ would be the best source of info.
Best of luck.
jdk
 
Old 02-27-2009, 12:06 PM   #7
Mountain
Member
 
Registered: Nov 2007
Location: A place with no mountains
Distribution: Kubuntu, sidux, openSUSE
Posts: 214

Original Poster
Rep: Reputation: 41
I'm still needing more help. Surely someone knows how to install deb packages in the Ubuntu alternate CD command shell.

The BusyBox.net website is too general. I need specific help for Ubuntu. The BusyBox website says dpkg is available, but in the Ubuntu alt installer CD, this command is not present...
 
Old 02-27-2009, 12:20 PM   #8
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Quote:
Originally Posted by Mountain View Post
I'm still needing more help. Surely someone knows how to install deb packages in the Ubuntu alternate CD command shell.

The BusyBox.net website is too general. I need specific help for Ubuntu. The BusyBox website says dpkg is available, but in the Ubuntu alt installer CD, this command is not present...
I don't suppose it has tasksel...
jdk
 
Old 02-27-2009, 12:33 PM   #9
Mountain
Member
 
Registered: Nov 2007
Location: A place with no mountains
Distribution: Kubuntu, sidux, openSUSE
Posts: 214

Original Poster
Rep: Reputation: 41
Quote:
Originally Posted by jdkaye View Post
I don't suppose it has tasksel...
jdk

/bin/sh: tasksel: not found
 
Old 02-27-2009, 02:02 PM   #10
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
You might do ls /usr/bin and ls /usr/sbin That will give you some idea of the tools you have available. Beyond that...... I'm out of suggestions. What exactly are you trying to rescue? There doesn't seem to be much there.
jdk
 
Old 02-27-2009, 08:19 PM   #11
Mountain
Member
 
Registered: Nov 2007
Location: A place with no mountains
Distribution: Kubuntu, sidux, openSUSE
Posts: 214

Original Poster
Rep: Reputation: 41
Just so anyone who reads this thread in the future knows, I did not resolve this. I'm giving up.
 
Old 09-08-2015, 01:32 PM   #12
davidtownes
LQ Newbie
 
Registered: Sep 2015
Posts: 1

Rep: Reputation: Disabled
This thread is super-old, so only answering it because it showed up first in a google search for "busybox package manager." The answer, as ultimately I discovered on my own with some targeted searches in a busybox console, is that busybox includes dpkg. So, if you're lucky and need to install something that doesn't have too many dependencies, you can use dpkg to get the job done.
 
  


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
Dropped into BusyBox shell after modifying install Mark_667 Ubuntu 13 12-17-2009 01:29 AM
how to save a list of installed packages and install these packages later mandavi Ubuntu 5 09-07-2009 11:36 AM
Busybox not letting me install Unbutu fraz422 Linux - Newbie 1 02-13-2009 07:22 PM
Mandrake 10, Busybox install command lonecrow Linux - Laptop and Netbook 2 05-03-2005 01:09 PM
Mandrake Update/Install Packages/Remove Packages wslyhbb Mandriva 2 03-15-2004 09:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:47 PM.

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
Open Source Consulting | Domain Registration