Miles Smith
Miles Smith

Reputation: 47

Arch Linux Pacman monitor

Reminder: Arch Linux uses pacman not apt-get

So I had an idea that I wanted to be able to leave my room and still see the progress of a download from my phone. I have looked for preexisting programs but have found none, so I decided to write a program myself.

the first step I took was reading the pacman documentation, to see if a function that could get the current download status was. I know there is a file I can check to see if exists

/var/lib/pacman/db.lck

which would tell me if there is a download

however I wanted to know more specifics on the download - progress and time remaining, name of download.

I have also found some GUI programs that use pacman and I was thinking of getting the source code to see if I could use some of that, but haven't found anything useful.

is there a way to find out the specifics about a current download, other than looking at the terminal that the command is running on?

Upvotes: 0

Views: 499

Answers (2)

Jordanous
Jordanous

Reputation: 1

You could setup an ssh server on your host machine and connect to it using a terminal emulator on your phone (termux for example) and run whatever commands you like from there. This way you'll be able to view all terminal output from your phone quite seamlessly.

Upvotes: -1

xqzt
xqzt

Reputation: 44

Why overcomplicate things? Just install "screen" via pacman, and start the pacman update inside a screen.. And from your smartphone, use a SSH client to connect to your local machine and access that screen.

Upvotes: 1

Related Questions