Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
docs:guide-developer:releases:update_package_list [2021/09/15 20:40] – created bobafetthotmaildocs: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" release), rename it, and then edit two strings in the script to make it point to the new release.\\ 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" release), rename it, and then edit two strings in the script to make it point to the new release.\\
 +
 +In the following instructions, the "new release" is 21.02, the "old release" is 19.07 and the "legacy/older release" is lede 17.1. Adjust the versions accordingly to your current situation.
  
 Download the current release of the "CSV dump of the package database, updated daily" from [[ packages:start | this page]] and rename it to have the release version in it. For example **packages_dump_tab_separated_19.07.zip**. We will upload this later when we adjust the page. Download the current release of the "CSV dump of the package database, updated daily" from [[ packages:start | this page]] and rename it to have the release version in it. For example **packages_dump_tab_separated_19.07.zip**. We will upload this later when we adjust the page.
  
-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 root user in the openwrt.org server to do the following
  
 we can find current package files in this folder we can find current package files in this folder
Line 46: Line 48:
 </code> </code>
  
-Now we edit the package indexing script+Now we mass-edit the package indexes to point to the right package data folder 
 +<code> 
 +cd /var/www/dokuwiki/data/pages/packages/index_owrt19_7/ 
 +sed -i 's/pkgdata/pkgdata_owrt19_7/g' *
 </code> </code>
 +
 +
 +Now we mass-edit the package data to use different variable names
 +<code>
 +cd /var/www/dokuwiki/data/pages/packages/pkgdata_owrt19_7/
 +sed -i 's/Dependencies_pkg-dependencies/Dependencies_pkg-dependency_19s/g' *
 +sed -i 's/Categories_pkg-categorys/Categories_pkg-category_19s/g' *
 +</code>
 +
 +Now we mass-edit the table page to use different variable names (and be consistent with the changes above)
 +<code>
 +cd /var/www/dokuwiki/data/pages/packages/table_owrt19_7
 +sed -i 's/Dependencies_pkg-dependencies/Dependencies_pkg-dependency_19s/g' *
 +sed -i 's/Categories_pkg-categorys/Categories_pkg-category_19s/g' *
 +sed -i 's/Name_pkg-dependencies/%pageid%/g' *
 +sed -i 's/Package table/Package table 19.07/g' *
 +</code>
 +
 +
 +Now we edit the package indexing script
 +<code>
 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:start | here ]] to point to the right package lists and indexes, and remove legacy release entries. You can also upload the CSV file+Now it's time to edit the page in [[ packages:start | here ]] to point to the right package lists and indexes, and remove legacy release entries. You can also upload the CSV file
 + 
 +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. 
 + 
 +<code> 
 +nohup  sudo -u www-data /usr/bin/php7.0 /var/www/dokuwiki/bin/indexer.php -c  & 
 +</code>
  • Last modified: 2021/09/15 20:40
  • by bobafetthotmail