raulcd commented on code in PR #45481:
URL: https://github.com/apache/arrow/pull/45481#discussion_r1948714229
##########
dev/tasks/linux-packages/README.md:
##########
@@ -25,16 +25,87 @@
* Docker
* Tools to build tar.gz for Apache Arrow C++ and GLib
-## How to build .deb packages
+## How to build .deb packages for all supported platforms
+
+```bash
+cd dev/tasks/linux-packages/apache-arrow
+rake version:update
+rake apt:build
+```
+
+## How to build .deb packages only for specified supported platforms
+
+The following command line shows all supported platforms:
+
+```bash
+for x in dev/tasks/linux-packages/apache-arrow/apt/{debian,ubuntu}*; do
basename $x; done
+```
+
+You can specify target platforms by `APT_TARGETS`:
+
+```bash
+cd dev/tasks/linux-packages/apache-arrow
+rake version:update
+rake apt:build APT_TARGETS=debian-bookworm,ubuntu-noble
+```
+
+## How to debug .deb packages build
+
+You can use `apt:build:console` task to debug .deb packages build:
Review Comment:
whoah! that's useful!
##########
dev/tasks/linux-packages/README.md:
##########
@@ -25,16 +25,87 @@
* Docker
* Tools to build tar.gz for Apache Arrow C++ and GLib
-## How to build .deb packages
+## How to build .deb packages for all supported platforms
+
+```bash
+cd dev/tasks/linux-packages/apache-arrow
+rake version:update
+rake apt:build
+```
+
+## How to build .deb packages only for specified supported platforms
+
+The following command line shows all supported platforms:
+
+```bash
+for x in dev/tasks/linux-packages/apache-arrow/apt/{debian,ubuntu}*; do
basename $x; done
+```
+
+You can specify target platforms by `APT_TARGETS`:
Review Comment:
```suggestion
You can specify target platforms by setting `APT_TARGETS`:
```
##########
dev/tasks/linux-packages/README.md:
##########
@@ -25,16 +25,87 @@
* Docker
* Tools to build tar.gz for Apache Arrow C++ and GLib
-## How to build .deb packages
+## How to build .deb packages for all supported platforms
+
+```bash
+cd dev/tasks/linux-packages/apache-arrow
+rake version:update
+rake apt:build
+```
+
+## How to build .deb packages only for specified supported platforms
+
+The following command line shows all supported platforms:
+
+```bash
+for x in dev/tasks/linux-packages/apache-arrow/apt/{debian,ubuntu}*; do
basename $x; done
+```
+
+You can specify target platforms by `APT_TARGETS`:
+
+```bash
+cd dev/tasks/linux-packages/apache-arrow
+rake version:update
+rake apt:build APT_TARGETS=debian-bookworm,ubuntu-noble
+```
+
+## How to debug .deb packages build
+
+You can use `apt:build:console` task to debug .deb packages build:
+
+```bash
+cd dev/tasks/linux-packages/apache-arrow
+rake version:update
+rake apt:build:console APT_TARGETS=debian-bookworm
+```
+
+It will show a Bash prompt. You can start .deb build by `/host/build.sh`:
```console
-% rake version:update
-% rake apt
+host$ rake apt:build:console APT_TARGETS=debian-bookworm
+container$ /host/build.sh
+```
+
+You can keep the Bash session even when the .deb build failed. You can
+debug in the Bash session.
+
+## How to build .rpm packages for all supported platforms
+
+```bash
+cd dev/tasks/linux-packages/apache-arrow
+rake yum:build
+```
+
+## How to build .rpm packages only for specified supported platforms
Review Comment:
```suggestion
## How to build only specific .rpm packages for supported platforms
```
##########
dev/tasks/linux-packages/README.md:
##########
@@ -25,16 +25,87 @@
* Docker
* Tools to build tar.gz for Apache Arrow C++ and GLib
-## How to build .deb packages
+## How to build .deb packages for all supported platforms
+
+```bash
+cd dev/tasks/linux-packages/apache-arrow
+rake version:update
+rake apt:build
+```
+
+## How to build .deb packages only for specified supported platforms
+
+The following command line shows all supported platforms:
+
+```bash
+for x in dev/tasks/linux-packages/apache-arrow/apt/{debian,ubuntu}*; do
basename $x; done
+```
+
+You can specify target platforms by `APT_TARGETS`:
+
+```bash
+cd dev/tasks/linux-packages/apache-arrow
+rake version:update
+rake apt:build APT_TARGETS=debian-bookworm,ubuntu-noble
+```
+
+## How to debug .deb packages build
+
+You can use `apt:build:console` task to debug .deb packages build:
+
+```bash
+cd dev/tasks/linux-packages/apache-arrow
+rake version:update
+rake apt:build:console APT_TARGETS=debian-bookworm
+```
+
+It will show a Bash prompt. You can start .deb build by `/host/build.sh`:
```console
-% rake version:update
-% rake apt
+host$ rake apt:build:console APT_TARGETS=debian-bookworm
+container$ /host/build.sh
+```
+
+You can keep the Bash session even when the .deb build failed. You can
+debug in the Bash session.
+
+## How to build .rpm packages for all supported platforms
+
+```bash
+cd dev/tasks/linux-packages/apache-arrow
+rake yum:build
+```
+
+## How to build .rpm packages only for specified supported platforms
+
+The following command line shows all supported platforms:
+
+```bash
+for x in dev/tasks/linux-packages/apache-arrow/yum/{alma,amazon,centos}*; do
basename $x; done
```
-## How to build .rpm packages
+You can specify target platforms by `YUM_TARGETS`:
Review Comment:
```suggestion
You can specify target platforms by setting `YUM_TARGETS`:
```
##########
dev/tasks/linux-packages/README.md:
##########
@@ -25,16 +25,87 @@
* Docker
* Tools to build tar.gz for Apache Arrow C++ and GLib
-## How to build .deb packages
+## How to build .deb packages for all supported platforms
+
+```bash
+cd dev/tasks/linux-packages/apache-arrow
+rake version:update
+rake apt:build
+```
+
+## How to build .deb packages only for specified supported platforms
Review Comment:
```suggestion
## How to build only specific .deb packages for supported platforms
```
##########
dev/tasks/linux-packages/README.md:
##########
@@ -25,16 +25,87 @@
* Docker
* Tools to build tar.gz for Apache Arrow C++ and GLib
-## How to build .deb packages
+## How to build .deb packages for all supported platforms
+
+```bash
+cd dev/tasks/linux-packages/apache-arrow
+rake version:update
+rake apt:build
+```
+
+## How to build .deb packages only for specified supported platforms
+
+The following command line shows all supported platforms:
Review Comment:
```suggestion
The following command line shows all supported platforms, bear in mind to
execute this command from your root `arrow` clone folder:
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]