Package Download
Examples
pacman --download bash-3.2.48-x86_64.tbz lilo-22.8.src-x86_86.tbz pacman -d bash-3.2.48-x86_64.tbz --repo=ttylinux.org pacman -d bash-3.2.48-x86_64.tbz lilo-22.8.src-x86_86.tbz --vers=9.1 pacman --repo=palooka.net --download --vers=9.1 bash-3.2.48-x86_64.tbz
Use the -d or -download option to download a package from a repository via the network. The package name given to the command is the actual name of the package file. Multiple package names can be used to download multiple packages.
If no repository is given with the -repo= option, then all known repositories are searched. If the -repo= option is used, then only the given repository is search. The first package found matching the given package name is downloaded if there is a ttylinux version match, and then the download command stops; there is no further package search after a download attempt.
The version of the running ttylinux from which the download command is given must match the ttylinux version for a matching package name, otherwise the package is skipped and the download command continues searching the repository. Matching package names are displayed with their ttylinux version.
The -vers= option is used to override the running ttylinux version. For example, with this option you can download a package generated for ttylinux-9.1 while running ttylinux-9.3, which in many cases is a valid option; furthermore, this option must be used with pacman when running pacman from a non-ttylinux host. See section 4.10.2 for using pacman on a non-ttylinux host.
Package Erase
Examples
pacman --erase e2fsprogs-1.41.3 pacman -e e2fsprogs-1.41.3 bash-3.2.48
Use the -e or -erase option to remove an installed package's files and remove the package database file. The name is the name of the package as shown by the pacman query operations; this is not the name of the actual binary package file. Multiple package names can be used to remove multiple packages.
pacman will show the package name ask to continue to remove the given package, and it will always list all the removed files.
Use the -v or -verbose option to get verbose output during package removal.
Package Install
Examples
pacman -i packages/bash-3.2.48-i486.tbz pacman -i bash-3.2.48-i486.tbz e2fsprogs-1.41.3-i486.tbz pacman --install --repo=ttylinux.net bash-3.2.48-i486.tbz pacman --repo=ttylinux.net --install --vers=9.1 bash-3.2.48-i486.tbz
Use the -i or -install option to install a package by giving the package file name. The package name can be a pathname; the actual package file must be as named in the pacman command unless the -repo= option is used. Multiple package names can be used to install multiple packages.
To install from a repository use the -repo= option to give the hostname of the ttylinux package repository. Matching package names are displayed with their ttylinux version, but if the package's ttylinux version does not match the running ttylinux then the package is not installed. For the package installation command, the -vers= option is used only with the -repo= option to override the running ttylinux version. For example, with this option you can install a package generated for ttylinux-9.1 while running ttylinux-9.3, which in many cases is a valid option.
Package Make
Examples
pacman -m dropbear-0.52-i486.tbz pacman -make bash-3.2.48-i486.tbz e2fsprogs-1.41.3-i486.tbz
Use the -m or -make option to make ttylinux packages. This is a very difficult command to use. This command can be used on ttylinux but it is intended to be used on a non-ttylinux host to assemble ttylinux packages.
This command looks for a package database file. The database file name is the package name without the CPU architecture and .tbz suffix. For the dropbear example above, the database file name will be pkg-dropbear-0.52-FILES and that database file must be in the /usr/share/ttylinux directory.
Use the -v or -verbose option to get verbose output during package making.
See section 4.10.2 for using pacman on a non-ttylinux host to make ttylinux packages.
Query All List the Installed Packages
Examples
pacman -qa pacman --query-all
Use the -qa or -query-all option to see the list of all installed packages. This command shows the general package names, not the actual binary package file names. The package names shown by this command are the package names to use with the pacman erase command.
Query File Show the Package to which a File Belongs
Examples
pacman -qf /bin/login pacman --query-file /bin/ls /usr/bin/pacman
Use the -qf or -query-file option to find out which package a file belongs to. If the given file name does not actually exists on the system there will be no output from pacman. If the given file name is not in an installed package, then there will be no output from pacman.
Query List List the Files of an Installed Package
Examples
pacman -ql e2fsprogs-1.41.3 pacman --query-list e2fsprogs-1.41.3 bash-3.2.48
Use the -ql or -query-list option to list all files in the given package.
Query Repository
Examples
pacman -qr pacman --query-repo calc e2fsprogs-1.41.3-i486.tbz pacman -qr --repo=waldo.net
Use the -qr or -query-repo option to list packages in an external ttylinux package repository.
When the -repo= option is used, then only that repository is used; otherwise the ttylinux.net repository and all the repositories named in the /etc/ttylinux-repo file are used.
The package name is the actual name of the binary package file; this is the same package name to use when installing a package.
When no package name is given all packages in the appropriate repositories are listed. This can be bothersome when looking for a particular package, as the name of the package may scroll way off the screen as the repository is listed. Use the name of a package, or a partial name, with this command to limit the output to the package of interest. The package names given with this command can be shortened; the partial name must be from the beginning of the package name, with no gaps or wildcards. For example, a repository query for package name calc will find and list only the binary package files beginning with calc, listing the actual package names such as calc-2.12.4.0-i486.tbz and calc-2.12.4.0-x86_64.tbz. All appropriate repositories will be search in this manner.