How to create package file for packages

Jugari Cross

I am trying for offline installation of certain packages using apt-get. I have modified sources.list file to reflect the local cache directory path where I have kept all the required packages. However, when I do apt-get install of the package(which is present in local cache direcory), I get error "Package" file not found. How do I create the package file?

When I run apt-get install vim, I get "Package" fiel not found though vim_xxxx.deb package is present in local cache direcory

Note: I also copied Package file from ubuntu archive repository into the local cache direcory and installation went fine. Is this the correct solution? OR should I create a new Package file?

Jugari Cross

I tried the following command and it worked

sudo dpkg-scanpackages . /dev/null | gzip -c9 > Packages.gz

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

Create App Packages doesn't actually create an appxbundle file?

분류에서Dev

How to create a Snap package for a software?

분류에서Dev

How to disable NuGet package restore and bring in packages locally?

분류에서Dev

copyright file in deb package - how to

분류에서Dev

How to create an installable package in a ppa the simple way

분류에서Dev

Get name and version of available packages to text file - name and version only on same line, per package

분류에서Dev

How to apply a changelog file to packages in a PPA when building from recipe?

분류에서Dev

File corrupted, how do I reinstall packages on Debian?

분류에서Dev

How can I sort packages by file size when searching the repositories?

분류에서Dev

How to create a batch file for this issue?

분류에서Dev

How to create .jl file in IJulia

분류에서Dev

On Gentoo, how do I rebuild all packages depended on some other package?

분류에서Dev

How to create a Snap package that uses Docker to pull and run a Docker images?

분류에서Dev

Virtual packages as aptitude understands and package-management

분류에서Dev

How do you create a script to batch add repositories and then batch install packages?

분류에서Dev

How to use one recipe to create packages for different ubuntu series (trouble with ./debian/changelog)?

분류에서Dev

How can I keep track of all the packages / dependencies that are installed when I run apt-get for a specific package?

분류에서Dev

How to create a dialog window to choose a file path

분류에서Dev

How to create folder shortcuts in file manager?

분류에서Dev

How to rename a file and create a download link for it PHP

분류에서Dev

How to create file in some directory C++

분류에서Dev

How to create a text File in solution Explorer?

분류에서Dev

How to create file in some directory C++

분류에서Dev

How do I create a binary file?

분류에서Dev

How to create an unordered list in a php file

분류에서Dev

How to create a Persian file.txt and then explode it?

분류에서Dev

How to create a log file with CodeIgniter Web Framework?

분류에서Dev

How to create Windows XP styled fvwmrc file?

분류에서Dev

How to create a folder from a string in a file?

Related 관련 기사

  1. 1

    Create App Packages doesn't actually create an appxbundle file?

  2. 2

    How to create a Snap package for a software?

  3. 3

    How to disable NuGet package restore and bring in packages locally?

  4. 4

    copyright file in deb package - how to

  5. 5

    How to create an installable package in a ppa the simple way

  6. 6

    Get name and version of available packages to text file - name and version only on same line, per package

  7. 7

    How to apply a changelog file to packages in a PPA when building from recipe?

  8. 8

    File corrupted, how do I reinstall packages on Debian?

  9. 9

    How can I sort packages by file size when searching the repositories?

  10. 10

    How to create a batch file for this issue?

  11. 11

    How to create .jl file in IJulia

  12. 12

    On Gentoo, how do I rebuild all packages depended on some other package?

  13. 13

    How to create a Snap package that uses Docker to pull and run a Docker images?

  14. 14

    Virtual packages as aptitude understands and package-management

  15. 15

    How do you create a script to batch add repositories and then batch install packages?

  16. 16

    How to use one recipe to create packages for different ubuntu series (trouble with ./debian/changelog)?

  17. 17

    How can I keep track of all the packages / dependencies that are installed when I run apt-get for a specific package?

  18. 18

    How to create a dialog window to choose a file path

  19. 19

    How to create folder shortcuts in file manager?

  20. 20

    How to rename a file and create a download link for it PHP

  21. 21

    How to create file in some directory C++

  22. 22

    How to create a text File in solution Explorer?

  23. 23

    How to create file in some directory C++

  24. 24

    How do I create a binary file?

  25. 25

    How to create an unordered list in a php file

  26. 26

    How to create a Persian file.txt and then explode it?

  27. 27

    How to create a log file with CodeIgniter Web Framework?

  28. 28

    How to create Windows XP styled fvwmrc file?

  29. 29

    How to create a folder from a string in a file?

뜨겁다태그

보관