You are not logged in.

#1 2010-12-31 11:05:41

Mr. Alex
Member
Registered: 2010-08-26
Posts: 623

Is "pacman -T" like "apt-get install -f" ?

Is "pacman -T" like "apt-get install -f" in Debian?

Last edited by Mr. Alex (2010-12-31 11:06:07)

Offline

#2 2010-12-31 11:27:25

kaszak696
Member
Registered: 2009-05-26
Posts: 543

Re: Is "pacman -T" like "apt-get install -f" ?

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

#3 2010-12-31 12:51:51

Mr. Alex
Member
Registered: 2010-08-26
Posts: 623

Re: Is "pacman -T" like "apt-get install -f" ?

I've already read the man page. Can "-T" be used outside scripts and package builds?

Offline

#4 2010-12-31 13:33:42

kaszak696
Member
Registered: 2009-05-26
Posts: 543

Re: Is "pacman -T" like "apt-get install -f" ?

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

#5 2010-12-31 14:11:48

Mr. Alex
Member
Registered: 2010-08-26
Posts: 623

Re: Is "pacman -T" like "apt-get install -f" ?

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

#6 2010-12-31 14:19:35

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Is "pacman -T" like "apt-get install -f" ?

       -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

#7 2010-12-31 15:11:25

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: Is "pacman -T" like "apt-get install -f" ?

Mr. Alex wrote:

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

#8 2010-12-31 15:42:50

Mr. Alex
Member
Registered: 2010-08-26
Posts: 623

Re: Is "pacman -T" like "apt-get install -f" ?

So is there "apt-get install -f" alternate in pacman?

Offline

#9 2010-12-31 15:43:54

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: Is "pacman -T" like "apt-get install -f" ?

What does that do?

Offline

#10 2010-12-31 15:46:07

Dogmeat
Member
From: Slovak Republic
Registered: 2009-02-24
Posts: 193

Re: Is "pacman -T" like "apt-get install -f" ?

Pacman Rosetta says apt-get install -f  is pacman -U for Arch Linux.

Offline

#11 2010-12-31 16:23:48

Mr. Alex
Member
Registered: 2010-08-26
Posts: 623

Re: Is "pacman -T" like "apt-get install -f" ?

> 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

#12 2010-12-31 16:25:06

Mr. Alex
Member
Registered: 2010-08-26
Posts: 623

Re: Is "pacman -T" like "apt-get install -f" ?

> Pacman Rosetta says apt-get install -f  is pacman -U for Arch Linux.

"-f" fixes, "-U" installs.

Offline

#13 2010-12-31 16:35:21

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: Is "pacman -T" like "apt-get install -f" ?

Mr. Alex wrote:

> 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-feedparser

Offline

#14 2010-12-31 16:57:42

Mr. Alex
Member
Registered: 2010-08-26
Posts: 623

Re: Is "pacman -T" like "apt-get install -f" ?

Thanks. Looks like this is the thing I was looking for...

Offline

Board footer

Powered by FluxBB