The attacker was a first-year student, named locally as Timur Bekmansurov, 18, and most of his victims were fellow students.
At the university they instinctively knew how to act. Students told me they barricaded themselves inside classes and kept away from windows. Some hid on the floor and under desks.
Months ago there was a deadly shooting at a school in the Russian city of Kazan, so many of them had that on their minds. And students here reminded me that a secondary school teacher in the Perm region was wounded by a student who stabbed her last May.
Perm – 1,300 km (800 miles) east of Moscow – is quiet and subdued, particularly around the university. People are standing around in silence, some are wiping away tears and hugging each other.
The university has been cordoned off but some 300 people gathered outside the main gate. Around a dozen desks were placed just outside the gate and a makeshift memorial has been created.
Three of the victims were teenagers.
Who died at Perm University
Ksenia Samchenko – 18; Yekaterina Shakirova – 19
Yaroslav Aramelev – 19; Alexandra Mokhova – 20
Anna Aigeldina – 26; Margarita Engaus – 66
People are laying flowers, lighting candles and even bringing toys. They are mainly students who under normal circumstances would be coming in for their classes.

They are struggling to come to terms with what happened, describing their city as “crushed by tragedy”.
Around midday a priest came to offer comfort to the students.
Not many are willing to talk, preferring to be alone with their grief.
Eyewitnesses said the gunman began shooting outside, on the university campus, before going into one of the buildings. There were around 3,000 students and teachers on the university premises at the time.
A teacher told the BBC that he heard students screaming and then saw them running and jumping out of windows.
Two students told me how they were in a different university building and didn’t hear the shots but soon realised what was going on. Their teacher received a message and they started seeing messages on chats and social media.

Another student told Russia’s Kommersant website that his teacher tied the handles of the door together just before the attacker tried to get inside.
“There was no key and the door was open. She tied the handles with a piece of cable. He tried to force the door. When it wouldn’t open, he shot at the door and then once at the wall and then kept walking along the corridor.”