Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

If I want, for example, /usr/share/doc/nvidia-96/README.txt.gz from nvidia-96, is there a way for me to download just this file?

share|improve this question
add comment

5 Answers 5

up vote 4 down vote accepted

Yes, you can download the .deb file from packages.ubuntu.com and then open it like an archive (using file-roller). There are two more archives inside, you'll need to open "data.tar.gz".

share|improve this answer
    
I chose this answer because it's simplest/most easily repeatable. –  ændrük Oct 11 '10 at 16:44
add comment

If you don't want to use the graphical file-roller as suggested in another answer, there are some other options:

  • Install the debian-goodies package, and run debmany nvidia-96; this will present a dialog of documentation files in the package, and you can press Enter to view any one of them.
  • (Lower-level:) Download the .deb file using whatever method you prefer, and run dpkg --fsys-tarfile foo.deb | tar xO ./usr/share/doc/nvidia-96/README.txt.gz (the leading dot after tar xO is required).
share|improve this answer
    
+1 for the complete extraction command. Thanks. –  ændrük Oct 11 '10 at 16:43
add comment

you can do sudo apt-get -d install nvidia-96 to download package without installation

share|improve this answer
1  
he would still need to extract it someway and look for the file. More complete answer requested. –  Mahesh May 18 '12 at 18:41
add comment

Another alternative:

sudo aptitude download nvidia-96
share|improve this answer
add comment

Yes you can. Type the following in the terminal:

sudo apt-get install -d <"package" or "packages">

Here -d parameter only downloads packages and not install the packages. You can find the downloaded packages in /var/cache/apt folder.

If you use Synaptic, then select downloads only option.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.