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.

I want to know the storage location of sudo apt-get download command in Ubuntu.

I searched in the archives folder but its not there. Please help me.

share|improve this question
add comment

2 Answers

It will be downloaded to your current directory. E.g.

  1. Run

    apt-get download packagename
    
  2. Note the output, e.g.

    Get:1 Downloading passwd 1:4.1.5.1-1ubuntu4.1 [1,073 kB]
    Fetched 1,073 kB in 0s (4,792 kB/s)
    
  3. List the files:

    ls packagename*.deb
    

    returns in my example

    passwd_4.1.5.1-1ubuntu4.1_amd64.deb
    

Note that as it just fetches a package and drops it in your current directory, you don't need sudo.

share|improve this answer
add comment

From apt-get(8), emphasis by me:

download

download will download the given binary package into the current directory.

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.