65 lines
1.5 KiB
Markdown
Executable File
65 lines
1.5 KiB
Markdown
Executable File
# opkg Repository - Quick Reference
|
||
|
||
## 📦 Repository Ready!
|
||
|
||
Your opkg-compatible repository is located at:
|
||
```
|
||
/home/user/Public/Projects/OpenWRT/opkg-repo/
|
||
```
|
||
|
||
## 🚀 Quick Upload
|
||
|
||
Upload to your HTTP server (`/srv/http`):
|
||
```bash
|
||
./upload-repo.sh SERVER_IP user /srv/http/opkg
|
||
```
|
||
|
||
Alternatively, manual upload:
|
||
```bash
|
||
scp -r opkg-repo/* user@SERVER_IP:/srv/http/opkg/
|
||
```
|
||
|
||
## 📋 Available Packages
|
||
|
||
- **btop-static** (1.4.3-1) - 1.0 MB - Resource monitor
|
||
- **mosh-static** (1.4.0-1) - 3.6 MB - Mobile Shell
|
||
|
||
## 🔧 On Your OpenWRT Device
|
||
|
||
```bash
|
||
# Add repository (replace SERVER_IP)
|
||
echo 'src/gz custom http://SERVER_IP/opkg/aarch64_cortex-a53/packages' > /etc/opkg/customfeeds.conf
|
||
|
||
# Update and install
|
||
opkg update
|
||
opkg install btop-static mosh-static
|
||
```
|
||
|
||
## ➕ Adding New Packages
|
||
|
||
```bash
|
||
# 1. Copy package to repository
|
||
cp new-package.ipk opkg-repo/aarch64_cortex-a53/packages/
|
||
|
||
# 2. Regenerate index
|
||
./generate-index.sh opkg-repo/aarch64_cortex-a53/packages/ > opkg-repo/aarch64_cortex-a53/packages/Packages
|
||
gzip -9 -k opkg-repo/aarch64_cortex-a53/packages/Packages
|
||
|
||
# 3. Upload to server
|
||
./upload-repo.sh SERVER_IP user /srv/http/opkg
|
||
```
|
||
|
||
## 📁 Files Created
|
||
|
||
- `opkg-repo/` - Local repository directory
|
||
- `generate-index.sh` - Package index generator
|
||
- `upload-repo.sh` - Server upload script
|
||
- Full documentation in the artifacts
|
||
|
||
## ⚠️ Notes
|
||
|
||
- Repository is for **aarch64_cortex-a53** architecture only
|
||
- All packages are statically linked
|
||
- Index must be regenerated after changes
|
||
- Two btop variants failed indexing (missing control files)
|