Smart
From Granular Linux Documentation
Contents |
Introduction
smart is the default package manager for Unity, and in all probability, for Unity-based Granular releases too.
Some Facts
- Smart cache (package list), downloaded packages, and channel list are stored in /var/lib/smart.
- Smart is able to handle many different types of repository structures, like apt-rpm, urpmi, yum, yast2, apt-deb, and many more.
Important Commands
- Installing/Updating a package:
smart install amarok
- Refreshing package list:
smart update
- Removing package list cache:
smart clean
- Adding an apt-rpm channel (repository):
smart channel --add wolverine type=apt-rpm name="Granular Wolverine" \ baseurl=http://www.granularproject.org/content/repo/granular/wolverine components="kde main"
- Adding a urpmi channel (repository):
smart channel --add cooker type=urpmi name="Mandriva Cooker" \ baseurl=http://mirrors.kernel.org/mandrake/Mandrakelinux/devel/cooker/i586/media/main \ hdlurl=http://mirrors.kernel.org/mandrake/Mandrakelinux/devel/cooker/i586/media/main/release/media_info/hdlist.cz
- Setting priority of a channel:
smart channel --set wolverine priority=10
- Disabling a channel:
smart channel --disable wolverine
- Removing a channel:
smart channel --disable wolverine