You are not logged in.
Is "pacman -T" like "apt-get install -f" in Debian?
Last edited by Mr. Alex (2010-12-31 11:06:07)
Offline
No, since "pacman -T" is not doing any changes to filesystem. "man pacman" should tell you this.
'What can be asserted without evidence can also be dismissed without evidence.' - Christopher Hitchens
'There's no such thing as addiction, there's only things that you enjoy doing more than life.' - Doug Stanhope
GitHub Junkyard
Offline
I've already read the man page. Can "-T" be used outside scripts and package builds?
Offline
Of course it can, it will give you a simple list of missing dependencies, it's on you to decide what will you do with that.
'What can be asserted without evidence can also be dismissed without evidence.' - Christopher Hitchens
'There's no such thing as addiction, there's only things that you enjoy doing more than life.' - Doug Stanhope
GitHub Junkyard
Offline
When I do "pacman -T", it checks the whole system instantly. HDD doesn't do anything. But when I install some package, it takes some time to check dependencies (a few seconds + HDD loading). Why?
Offline
-T, --deptest
Check dependencies; this is useful in scripts such as makepkg to check installed packages. This operation will check each dependency
specified and return a list of those which are not currently satisfied on the system. This operation accepts no other options. Example
usage: pacman -T qt "bash>=3.2".Not only does using -T without option make no sense, but the man page clearly explains its usage and even gives an example.
Offline
When I do "pacman -T", it checks the whole system instantly. HDD doesn't do anything. But when I install some package, it takes some time to check dependencies (a few seconds + HDD loading). Why?
pacman -T <pkg> just checks if "pkg" is installed. It does not dependency resolving.
Offline
So is there "apt-get install -f" alternate in pacman?
Offline
What does that do?
Offline
Pacman Rosetta says apt-get install -f is pacman -U for Arch Linux.
Offline
> What does that do?
From man page:
-f, --fix-broken
Fix; attempt to correct a system with broken dependencies in place. This option, when used with install/remove, can omit any packages to permit APT to deduce a likely solution. Any Package that are specified must completely correct the problem. The option is sometimes necessary when running APT for the first time; APT itself does not allow broken package dependencies to exist on a system. It is possible that a system's dependency structure can be so corrupt as to require manual intervention (which usually means using dselect(8) or dpkg --remove to eliminate some of the offending packages). Use of this option together with -m may produce an error in some situations. Configuration Item: APT::Get::Fix-Broken.
Last edited by Mr. Alex (2010-12-31 16:24:05)
Offline
> Pacman Rosetta says apt-get install -f is pacman -U for Arch Linux.
"-f" fixes, "-U" installs.
Offline
> What does that do?
From man page:
-f, --fix-broken
Fix; attempt to correct a system with broken dependencies in place. This option, when used with install/remove, can omit any packages to permit APT to deduce a likely solution. Any Package that are specified must completely correct the problem. The option is sometimes necessary when running APT for the first time; APT itself does not allow broken package dependencies to exist on a system. It is possible that a system's dependency structure can be so corrupt as to require manual intervention (which usually means using dselect(8) or dpkg --remove to eliminate some of the offending packages). Use of this option together with -m may produce an error in some situations. Configuration Item: APT::Get::Fix-Broken.
pacman does not let you screw up dependencies unless you specify the "-d" flag... but:
allan@mugen ~
> pacman -Rd python-feedparser
Remove (1): python-feedparser-4.1-6
Total Removed Size: 0.26 MB
Do you want to remove these packages? [Y/n]
(1/1) removing python-feedparser [######################] 100%
allan@mugen ~
> testdb
missing dependency for gpodder : python-feedparserOffline
Thanks. Looks like this is the thing I was looking for...
Offline