The parton and hadron cascade model PACIAE 2.1 (cf. Comput. Phys. Commun. 184 (2013) 1476) has been upgraded to the new issue of PACIAE 2.2. By this new issue the lepton–nucleon and lepton–nucleus (inclusive) deep inelastic scatterings can also be investigated. As an example, the PACIAE 2.2 model is enabled to calculate the specific charged hadron multiplicity in the e−+p and e−+D semi-inclusive deep-inelastic scattering at 27.6 GeV electron beam energy. The calculated results are well comparing with the corresponding HERMES data. Additionally, the effect of model parameters α and β in the Lund string fragmentation function on the multiplicity is studied. Program summaryProgram title: PACIAE version 2.2Catalogue identifier: AEKI_v2_2Program summary URL:http://cpc.cs.qub.ac.uk/summaries/AEKI_v2_2.htmlProgram obtainable from: CPC Program Library, Queen’s University, Belfast, N. IrelandLicensing provisions: Standard CPC licence, http://cpc.cs.qub.ac.uk/licence/licence.htmlNo. of lines in distributed program, including test data, etc.: 297,665No. of bytes in distributed program, including test data, etc.: 2,063,650Distribution format: tar.gzProgramming language: FORTRAN 77.Computer: DELL Studio XPS and/or others with a FORTRAN 77 compiler.Operating system: Linux with FORTRAN 77 compiler.RAM: ≈ 1 GBClassification: 11.1, 17.8.Does the new version supersede the previous version?: YesCatalogue identifier of previous version: AEKI_v2_0Journal reference of previous version: Comput. Phys. Comm. 184 (2013) 1476Nature of problem: The lepton inclusive and semi-inclusive deep inelastic scattering (DIS and SIDIS) off nuclear target have greatly contributed to the parton structure of hadron, the parametrization of parton distribution function (PDF), and the extraction of fragmentation function (FF). Unfortunately, the PACIAE 2.1 model is unable to describe the lepton–nucleon and lepton–nucleus DIS (SIDIS), the corresponding upgrade is highly required.Solution method: The parton and hadron cascade model of PACIAE 2.1 is upgraded to PACIAE 2.2 with the possibility of investigating the lepton–nucleon and lepton–nucleus DIS (SIDIS). In the PACIAE 2.2 model the lepton–nucleon and lepton–nucleus DIS are treated the same as proton–nucleon and proton–nucleus collisions in PACIAE 2.1, respectively. However, the lepton–nucleon DIS cross section is used instead of the nucleon–nucleon cross section in the initiation stage of the PACIAE model.Reasons for new version: In order that the PACIAE 2.2 model is now also able to simulate the lepton–nucleon and lepton–nucleus DIS.Summary of revisions: In the PACIAE 2.2 model the lepton–nucleon and lepton–nucleus DIS are dealt in the same way as the proton–nucleon and proton–nucleus collisions in PACIAE 2.1, respectively. However, the lepton–nucleon DIS cross section is employed instead of nucleon–nucleon cross section.Restrictions: Depend on the problem studied.Running time: PACIAE 2.2 has three versions of PACIAE 2.2a, 2.2b, and 2.2c. PACIAE 2.2a is for the elementary collision, such as pp, pp, and e+e− collisions, as well as the lepton–nucleon DIS, with input file of usux.dat. PACIAE 2.2b and PACIAE 2.2c are for the nuclear-nucleus collision of p+A and A+B as well as the lepton–nucleus DIS with input file of usu.dat. PACIAE 2.2b and 2.2c are similar in the physical contents but are different in the topological structure (see text for the details). •Using the attached input file of usux.dat to run 1000 events for the s=200GeV Non Single Diffractive pp collision by PACIAE 2.2a takes 0.5 min.•Using the attached input file of usu.dat to run 10 events for the 10%–40% most central Au + Au collisions at sNN=200GeV by PACIAE 2.2b takes 4 min.•Using the attached input file of usu.dat to run 10 events for the 10%–40% most central Au + Au collisions at sNN=200GeV by PACIAE 2.2c takes 8 min.