User Tools

Site Tools


overwrite_file

If you want to send us your comments, please do so. Thanks
More on comments


Overwrite file for dpkg-scanpackages

Fields in the file
filename: filename without version numbering
priority: low medium high
section: section to which the package belongs like sound, libs, utils …

Creating the overwrite file

overwrite.txt

Goto the folder with the .deb packages

cd /home/user/deb_files/dists/wheezy/main/binary-i386

Find the fieldvalues needed for the overwirte.txt file

dpkg-scanpackages ./ /dev/null | grep -i "Package:"
dpkg-scanpackages ./ /dev/null | grep -i priority
dpkg-scanpackages ./ /dev/null | grep -i section

Open

Libre Office calc

Past the found results in Calc behind eachother.
Remove the columns with Package:, priority and section.
Select the result and paste it in mousepad. Now it should look like this

beep medium sound
nano medium editors

and so on, for every .deb file there should be an entry.
Save the result in the folder with the .deb packages.
Now you can make Packages.gz with

dpkg-scanpackages ./ overwrite.txt | gzip -c --best  > Packages.gz

Main subjects on this wiki: Linux, Debian, HTML, Microcontrollers, Privacy

RSS
Disclaimer
Privacy statement
Bugs statement
Cookies
Copyright © : 2014 - 2024 Webevaluation.nl and the authors
Changes reserved.

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
overwrite_file.txt · Last modified: 01-01-2015 22:27 by wim