Linux command
upgradepkg 命令
安全
权限或系统影响较大,执行前请核对目标。
常用示例
Upgrade
sudo upgradepkg [path/to/package.tgz]
Install
sudo upgradepkg --install-new [path/to/package.tgz]
Reinstall
sudo upgradepkg --reinstall [path/to/package.tgz]
Dry run
upgradepkg --dry-run [path/to/package.tgz]
Verbose
sudo upgradepkg --verbose [path/to/package.tgz]
说明
upgradepkg upgrades Slackware packages by replacing existing packages with new versions. It removes the old package and installs the new one, preserving configuration where possible. Part of the Slackware pkgtools package management system.
参数
- --install-new
- Install package if not already present
- --reinstall
- Reinstall even if same version exists
- --dry-run
- Preview without making changes
- --verbose
- Show detailed progress
FAQ
What is the upgradepkg command used for?
upgradepkg upgrades Slackware packages by replacing existing packages with new versions. It removes the old package and installs the new one, preserving configuration where possible. Part of the Slackware pkgtools package management system.
How do I run a basic upgradepkg example?
Run `sudo upgradepkg [path/to/package.tgz]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --install-new do in upgradepkg?
Install package if not already present