Linux command
abroot 命令
安全
权限或系统影响较大,执行前请核对目标。
常用示例
Add
sudo abroot pkg add [package]
Remove
sudo abroot pkg remove [package]
List
sudo abroot pkg list
Apply
sudo abroot pkg apply
Rollback
sudo abroot rollback
Example
sudo abroot kargs [edit|show]
Example
sudo abroot status
说明
abroot is a utility providing full immutability and atomicity by transacting between two root partition states (A⟺B). Updates are performed using OCI images to ensure the system is always in a consistent state. This approach allows safe system updates where changes can be rolled back if issues occur. The system boots from one root partition while changes are applied to the other.
参数
- pkg add PACKAGE
- Add packages to the local image; requires apply to take effect
- pkg remove PACKAGE
- Remove packages from the local image; requires apply to take effect
- pkg list
- List packages in the local image
- pkg apply
- Apply pending package changes; requires reboot
- rollback
- Rollback to the previous system state
- kargs edit
- Edit kernel parameters
- kargs show
- Display current kernel parameters
- status
- Display current system status
- -h, --help
- Display help information
FAQ
What is the abroot command used for?
abroot is a utility providing full immutability and atomicity by transacting between two root partition states (A⟺B). Updates are performed using OCI images to ensure the system is always in a consistent state. This approach allows safe system updates where changes can be rolled back if issues occur. The system boots from one root partition while changes are applied to the other.
How do I run a basic abroot example?
Run `sudo abroot pkg add [package]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does pkg add PACKAGE do in abroot?
Add packages to the local image; requires apply to take effect