Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| docs:guide-developer:releases:update_package_list [2021/09/15 20:40] – created bobafetthotmail | docs:guide-developer:releases:update_package_list [2023/03/14 23:01] (current) – fix typos in code boxes formatting, minor clarifications bobafetthotmail | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| The package list and package Indexes are generated by a script, so we will first need to move the current data to a permanent place (so it can still be viewed in the wiki as a "old stable" | The package list and package Indexes are generated by a script, so we will first need to move the current data to a permanent place (so it can still be viewed in the wiki as a "old stable" | ||
| + | |||
| + | In the following instructions, | ||
| Download the current release of the "CSV dump of the package database, updated daily" from [[ packages: | Download the current release of the "CSV dump of the package database, updated daily" from [[ packages: | ||
| - | You will need ssh access and sudo/root access to the openwrt.org server to do the following | + | You will need ssh access and after you became |
| we can find current package files in this folder | we can find current package files in this folder | ||
| Line 46: | Line 48: | ||
| </ | </ | ||
| - | Now we edit the package | + | Now we mass-edit the package |
| + | < | ||
| + | cd / | ||
| + | sed -i ' | ||
| </ | </ | ||
| + | |||
| + | |||
| + | Now we mass-edit the package data to use different variable names | ||
| + | < | ||
| + | cd / | ||
| + | sed -i ' | ||
| + | sed -i ' | ||
| + | </ | ||
| + | |||
| + | Now we mass-edit the table page to use different variable names (and be consistent with the changes above) | ||
| + | < | ||
| + | cd / | ||
| + | sed -i ' | ||
| + | sed -i ' | ||
| + | sed -i ' | ||
| + | sed -i ' | ||
| + | </ | ||
| + | |||
| + | |||
| + | Now we edit the package indexing script | ||
| + | < | ||
| cd /root | cd /root | ||
| nano listpackages-server | nano listpackages-server | ||
| Line 112: | Line 138: | ||
| If launched this way it is run as background task. You can disconnect from SSH and it will still run. | If launched this way it is run as background task. You can disconnect from SSH and it will still run. | ||
| - | Now it's time to edit the page in [[ packages: | + | Now it's time to edit the page in [[ packages: |
| + | |||
| + | If you don't want to wait for the script to finish, you can also launch a page rescan so the wiki will re-read all text files and notice this manual change. | ||
| + | |||
| + | < | ||
| + | nohup sudo -u www-data / | ||
| + | </ | ||