Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ 1 [2] >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Restoring dpkg without an internet connection< Next Oldest | Next Newest >
Grim Offline





Group: Members
Posts: 284
Joined: Mar. 2004
Posted: Mar. 24 2004,08:03 QUOTE

Sorry, I think I understand what you meant now.  Doing the dpkg-restore just restores the dpkg database and allows apt to start working again.

If you're just trying to install software try running  apt-get install packagename

If you're not sure of the exact package name you can add the wildcard operator at the end of the command, i.e.  apt-get install packagename*

This'll return every package that even remotely resembles that for which you're searching.  Sort of a starting point where you can begin to narrow down your search.

If you're looking to compile from source, you may want to download and install 0.6.2, it has a new script that switches the busybox utils out for standard gnu utils (gcc and the like) when you install to hard drive.

Then you can run apt-get source -b packagename to have apt download the source, compile and install the application.

However, apt is a means for installing applications over the network, i.e. the internet.  It seems sorta pointless to get apt working if you don't have a network connection.  

In order to start compiling from source, you're going to need to find a way to install gcc and probably g++ and the associated libs.  Either with the new DSL release, or find a way to get your existing installation connected to the net, just long enough to install the necessary apps, or get ahold of some Debian CD's with the apps you need and add them to apt with apt-cdrom add.

Good luck.


--------------
No good deed goes unpunished...
Back to top
Profile PM WEB 
Grim Offline





Group: Members
Posts: 284
Joined: Mar. 2004
Posted: Mar. 24 2004,08:27 QUOTE

Quote (drx456 @ Mar. 23 2004,23:35)
Where can I get the file (dpkg.tar.gz) ?

from a terminal type...
Code Sample
sudo su
dpkg-restore
dpkg-restore will take care of everything for you.


--------------
No good deed goes unpunished...
Back to top
Profile PM WEB 
cbagger01 Offline





Group: Members
Posts: 4264
Joined: Oct. 2003
Posted: Mar. 24 2004,14:30 QUOTE

If you want to download it on another computer and copy over to your DSL box, the address is:

http://www.damnsmalllinux.org/dpkg.tar.gz

After you have used tar to restore the dpkg structure, you can download *.deb files on a different computer and use the dpkg program to install them on your DSL box after copying the file to your DSL computer.

Code Sample
sudo su
dpkg -i filename_i386.deb
exit


You can find many Debian packages for offline download at the Debian pool web site:

http://ftp.debian.org/debian/pool/main/

Good Luck.
Back to top
Profile PM 
firefly2442 Offline





Group: Members
Posts: 26
Joined: Feb. 2004
Posted: July 19 2004,23:03 QUOTE

I tried unpacking the dpkg.tar.gz in the "/var/lib" and restarted the computer but I still cannot use dpkg or apt-get to install files... any thoughts? :)

--------------
http://www.rivetcode.com
Back to top
Profile PM WEB AOL 
firefly2442 Offline





Group: Members
Posts: 26
Joined: Feb. 2004
Posted: July 20 2004,00:17 QUOTE

Got it to work with ".dsl" file.

--------------
http://www.rivetcode.com
Back to top
Profile PM WEB AOL 
9 replies since Mar. 23 2004,13:37 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ 1 [2] >/
reply to topic new topic new poll
Quick Reply: Restoring dpkg without an internet connection

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code